Var                   package:car                   R Documentation

_V_a_r_i_a_n_c_e-_C_o_v_a_r_i_a_n_c_e _M_a_t_r_i_c_e_s (_d_e_p_r_e_c_a_t_e_d)

_D_e_s_c_r_i_p_t_i_o_n:

     Computes variance-covariance matrices or variances for model
     objects or data. The default method uses the function 'var'. 

     These functions are now deprecated; instead, use the 'vcov'
     function, now in the base package. Note that 'vcov' has no
     'diagonal' argument and no default method.

_U_s_a_g_e:

     Var(object, ...)

     ## Default S3 method:
     Var(object, diagonal=FALSE, ...)

     ## S3 method for class 'lm':
     Var(object, diagonal=FALSE, ...)

     ## S3 method for class 'glm':
     Var(object, diagonal=FALSE, ...)

_A_r_g_u_m_e_n_t_s:

  object: an object for which the covariance matrix is desired.

     ...: arguments to be passed to 'var' (e.g., 'na.rm').

diagonal: if 'TRUE', return only the variances.

_V_a_l_u_e:

     A variance-covariance matrix or a vector of variances.

_A_u_t_h_o_r(_s):

     John Fox jfox@mcmaster.ca

_S_e_e _A_l_s_o:

     'var'

_E_x_a_m_p_l_e_s:

     data(Davis)
     attach(Davis)
     Var(cbind(weight, repwt), na.rm=TRUE)
     ##          weight    repwt
     ## weight 233.8781 176.1014
     ## repwt  176.1014 189.7966

     Var(lm(weight~repwt))
     ##              (Intercept)        repwt
     ##  (Intercept)   9.2228211 -0.134640952
     ##  repwt        -0.1346410  0.002051736

