StatModel: StatModel

Description Usage Arguments Value Examples

View source: R/satuRn-framework.R

Description

Function for contstructing a new 'StatModel' object.

Usage

1
2
3
4
5
6
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

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.