getModel,StatModel-method {satuRn} | R Documentation

## Accessor functions for StatModel class

### Description

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

### Usage

    ## S4 method for signature 'StatModel'
    getModel(object)

    ## S4 method for signature 'StatModel'
    getDF(object)

    ## S4 method for signature 'StatModel'
    getDfPosterior(object)

    ## S4 method for signature 'StatModel'
    getDispersion(object)

    ## S4 method for signature '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)

[Package satuRn version 1.0.0 Index]