case/variable.names          package:stats          R Documentation

_C_a_s_e _a_n_d _V_a_r_i_a_b_l_e _N_a_m_e_s _o_f _F_i_t_t_e_d _M_o_d_e_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     Simple utilities returning (non-missing) case names, and
     (non-eliminated) variable names.

_U_s_a_g_e:

     case.names(object, ...)
     ## S3 method for class 'lm':
     case.names(object, full = FALSE, ...)

     variable.names(object, ...)
     ## S3 method for class 'lm':
     variable.names(object, full = FALSE, ...)

_A_r_g_u_m_e_n_t_s:

  object: an R object, typically a fitted model.

    full: logical; if 'TRUE', all names (including zero weights, ...)
          are returned.

     ...: further arguments passed to or from other methods.

_V_a_l_u_e:

     A character vector.

_S_e_e _A_l_s_o:

     'lm'

_E_x_a_m_p_l_e_s:

     x <- 1:20
     y <-  x + (x/4 - 2)^3 + rnorm(20, s=3)
     names(y) <- paste("O",x,sep=".")
     ww <- rep(1,20); ww[13] <- 0
     summary(lmxy <- lm(y ~ x + I(x^2)+I(x^3) + I((x-10)^2),
                        weights = ww), cor = TRUE)
     variable.names(lmxy)
     variable.names(lmxy, full= TRUE)# includes the last
     case.names(lmxy)
     case.names(lmxy, full = TRUE)# includes the 0-weight case

