| getBetaVcovDf,glm-method | R Documentation | 
This function returns a list containing the parameter estimates beta, the variance-covariance matrix vcov,
the residual degrees of freedom df and the residual standard deviation sigma based on a general linear model fitted by the lm function from the stats package.
This function will only rarely be called by the end-user. When calculating these values for protLM objects, we recommend using the function getbetaVcovDfList.
## S4 method for signature 'glm' getBetaVcovDf(model, exp_unit = NULL, pars_between = NULL)
model | 
 A general linear model object of class   | 
exp_unit | 
 The effect in the model that corresponds to the experimental unit. Only needed when one would like to calculate a more conservative way of estimating the degrees of freedom.
The default way (  | 
pars_between | 
 Only used if   | 
A list containing (1) a named column matrix beta containing the parameter estimates, (2) a named square variance-covariance matrix, (3) a numeric value equal to the residual degrees of freedom, (4) a numeric value equal to the residual standard deviation of the model and (5) NULL if exp_unit is left to its default value NULL, else: a conservative estimate of the degrees of freedom based on the number of experimental units and the degrees of freedom lost due to between-treatment effects.
data(proteinsCPTAC, package="MSqRob") lmmodel <- lm(formula="value ~ 1 + conc + instrlab + Sequence",data=getData(proteinsCPTAC[2])) getBetaVcovDf(lmmodel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.