Learn R Programming

BSagri (version 0.1-10)

modelparm.methods: For internal use. Extract model parameters needed for multcomp from objects of class gamlss or geeglm.

Description

Only for internal use with glht in package multcomp. Extracts model parameters needed for glht(multcomp) from objects of class gamlss or geeglm.

Usage

# S3 method for gamlss
modelparm(model, coef.=coef, vcov.=vcov, df = NULL, ...)
# S3 method for geeglm
modelparm(model, coef.=coef, vcov.=vcov, df = NULL, ...)

Arguments

model

an object of class gamlss and geeglm, respectively

coef.

a function to extract fitted mean parameters from models of class gamlss and geeglm

vcov.

a function to extract the estimated covariance matrix from models of class gamlss and geeglm

df

a single positive integer, the user-defined degrees of freedom. By default, df=NULL, the funtion will extract the residual degrees of freedom from the model.

further argument, not used

Value

As modelparm.default in package multcomp, a list with elements

coef

a numeric vector with the estimated model parameters

vcov

a matrix with numeric entries, and dimensions as length(coef)

df

a single numeric value, the residual degree of freedom

estimable

a logical vector, specifying which rows/colums of vcov correspond to non-NA parameters

Details

Test versions. Only for internal use. Further checks still need to be implemented.

See Also

function glht in package multcomp