satuRn-framework: The StatModel class for satuRn

Description Slots Author(s) Examples

Description

The 'StatModel' class contains a statistical model generate by the DTU analysis.

Models are created by the dedicated user-level function 'fitDTU()' or manually, using the 'StatModel()' constructor. In the former case, each quantitative feature is assigned its statistical model and the models are stored as a variable in a 'DataFrame' object, that in turn will be stored in the 'RowData' slot of an 'SummarizedExperiment object'.

Slots

type

'character(1)' defining type of the used model. Default is '"fitError"', i.e. a error model. If not an error, class type will be '"glm"'.

params

A 'list()' containing the parameters of the fitted model.

varPosterior

'numeric()' of posterior variance.

dfPosterior

'numeric()' of posterior degrees of freedom.

Author(s)

Jeroen Gilis

Examples

1
2
3
4
5
6
7
8
## 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)
)
myModel

jgilis/satuRn_jgilis documentation built on Jan. 21, 2021, 12:24 a.m.