Accessor functions for StatModel class

getModel(object)

to get model

getDF(object)

to get the residual degrees of freedom of the model

getDfPosterior(object)

to get the degrees of freedom of the empirical Bayes variance estimator

getDispersion(object)

to get the dispersion estimate of the model

getCoef(object)

to get the parameter estimates of the mean model

# S4 method for StatModel
getModel(object)

# S4 method for StatModel
getDF(object)

# S4 method for StatModel
getDfPosterior(object)

# S4 method for StatModel
getDispersion(object)

# S4 method for StatModel
getCoef(object)

Arguments

object

StatModel object

Value

The requested parameter of the StatModel object

Examples

## A fully specified dummy model
myModel <- StatModel(
    type = "glm",
    params = list(x = 3, y = 7, b = 4),
    varPosterior = c(0.1, 0.2, 0.3),
    dfPosterior = c(6, 7, 8)
)
getModel(myModel)
#> $x
#> [1] 3
#> 
#> $y
#> [1] 7
#> 
#> $b
#> [1] 4
#>