final.values.mcmc: Values of the last iteration for each chain

Description Usage Arguments Value Author(s) See Also Examples

View source: R/out.mcmclist.R

Description

This function gives the values of the last iteration for each chain. This is useful for assign the initial values from new MCMC models.

Usage

1

Arguments

mcmclist

A mcmc.2pnob or mcmc.3pnob class object.

...

Further arguments.

Value

A list with the last values simulated from a mcmc.2pnob or mcmc.3pnob class object.

Author(s)

Javier Mart<c3><ad>nez

See Also

mcmc.2pnob, mcmc.3pnob and continue.mcmc.bairt.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# data for model
data("MathTest")

# Only for the first 500 examinees of the data MathTest
# Two-Parameter Normal Ogive Model
model2 <- mcmc.2pnob(MathTest[1:500,], iter = 100, burning = 0)

# continue the  MCMC for the Two-Parameter Normal Ogive Model
initialValues2 <- final.values.mcmc(model2)
model121 <- mcmc.2pnob(MathTest[1:500,], initial.value = initialValues2,
iter = 100, burning = 0)


# For all examinees of the data MathTest
# Three-Parameter Normal Ogive Model
model3 <- mcmc.3pnob(MathTest, iter = 3500, burning = 500)

# continue the  MCMC for the Three-Parameter Normal Ogive Model
initialValues3 <- final.values.mcmc(model3)
model131 <- mcmc.3pnob(MathTest, initial.value = initialValues3,
iter = 3000, burning = 0)


## End(Not run)

bairt documentation built on May 1, 2019, 10:56 p.m.