Learn R Programming

psychtm (version 2021.1.0)

Mlr-class: S4 class for a regression model that inherits from '>Model.

Description

S4 class for a regression model that inherits from '>Model.

Helper function (constructor) for Mlr class

Usage

# S4 method for Mlr
sigma2(x)

# S4 method for Mlr sigma2(x) <- value

# S4 method for Mlr a0(x)

# S4 method for Mlr a0(x) <- value

# S4 method for Mlr b0(x)

# S4 method for Mlr b0(x) <- value

Mlr(a0 = 0.001, b0 = 0.001, sigma2 = NaN, ...)

Arguments

x

An Model object.

value

A value to assign to a slot for x

a0

A prior shape hyperparameter for sigma2.

b0

A prior rate hyperparameter for sigma2.

sigma2

A nchain x 1 numeric vector of draws of the residual variance.

...

additional arguments to be passed to the low level regression fitting functions (see below).

Value

An '>Mlr object.

Slots

a0

A prior shape hyperparameter for sigma2.

b0

A prior rate hyperparameter for sigma2.

sigma2

A nchain x 1 numeric vector of draws of the residual variance.

Examples

Run this code
# NOT RUN {
m1 <- Mlr(ndocs = 1)
print(m1)

# }

Run the code above in your browser using DataLab