SSD                  package:stats                  R Documentation

_S_S_D _M_a_t_r_i_x _a_n_d _E_s_t_i_m_a_t_e_d _V_a_r_i_a_n_c_e _M_a_t_r_i_x _i_n _M_u_l_t_i_v_a_r_i_a_t_e _M_o_d_e_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     Functions to compute matrix of residual sums of squares and
     products, or the estimated variance matrix for multivariate linear
     models.

_U_s_a_g_e:

     # S3 method for class 'mlm'
     SSD(object, ...)

     # S3 methods for class 'SSD' and 'mlm'
     estVar(object, ...)

_A_r_g_u_m_e_n_t_s:

  object: 'object' of class '"mlm"', or '"SSD"' in the case of
          'estVar'.

     ...: Unused

_V_a_l_u_e:

     'SSD()' returns a list of class '"SSD"' containing the following
     components 

     SSD: The residual sums of squares and products matrix

      df: Degrees of freedom

    call: Copied from 'object'


     'estVar' returns a matrix with the estimated variances and
     covariances.

_S_e_e _A_l_s_o:

     'mauchley.test', 'anova.mlm'

_E_x_a_m_p_l_e_s:

     # Lifted from Baron+Li:
     # "Notes on the use of R for psychology experiments and questionnaires"
     # Maxwell and Delaney, p. 497
     reacttime <- matrix(c(
     420, 420, 480, 480, 600, 780,
     420, 480, 480, 360, 480, 600,
     480, 480, 540, 660, 780, 780,
     420, 540, 540, 480, 780, 900,
     540, 660, 540, 480, 660, 720,
     360, 420, 360, 360, 480, 540,
     480, 480, 600, 540, 720, 840,
     480, 600, 660, 540, 720, 900,
     540, 600, 540, 480, 720, 780,
     480, 420, 540, 540, 660, 780),
     ncol = 6, byrow = TRUE,
     dimnames=list(subj=1:10,
                   cond=c("deg0NA", "deg4NA", "deg8NA",
                          "deg0NP", "deg4NP", "deg8NP")))

     mlmfit <- lm(reacttime~1)
     SSD(mlmfit)
     estVar(mlmfit)

