StatModel: StatModel

View source: R/satuRn-framework.R

StatModelR Documentation

StatModel

Description

Function for contstructing a new 'StatModel' object.

Usage

StatModel(
  type = "fitError",
  params = list(),
  varPosterior = NA_real_,
  dfPosterior = NA_real_
)

Arguments

type

default set to fiterror, can be a glm

params

A list containing the parameters of the fitted glm

varPosterior

Numeric, posterior variance of the glm, default is NA

dfPosterior

Numeric, posterior degrees of freedom of the glm, default is NA

Value

A 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)
)
myModel

statOmics/satuRn documentation built on March 9, 2023, 3:43 p.m.