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

Description Usage Arguments Value Slots Examples

Description

S4 class for a regression model that inherits from Model.

Helper function (constructor) for Mlr class

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## S4 method for signature 'Mlr'
sigma2(x)

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

## S4 method for signature 'Mlr'
a0(x)

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

## S4 method for signature 'Mlr'
b0(x)

## S4 replacement method for signature '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

1
2
m1 <- Mlr(ndocs = 1)
print(m1)

ktw5691/psychtm documentation built on Nov. 3, 2021, 9:10 a.m.