View source: R/satuRn-framework.R
StatModel | R Documentation |
Function for contstructing a new 'StatModel' object.
StatModel( type = "fitError", params = list(), varPosterior = NA_real_, dfPosterior = NA_real_ )
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 |
A StatModel object
## 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.