update_inits-bcgpmodel-method: Update the starting values for MCMC chains

Description Usage Arguments Details Value See Also Examples

Description

update_inits returns an instance of S4 class bcgpmodel after updating the starting values for each Markov chain

Usage

1
2
## S4 method for signature 'bcgpmodel'
update_inits(object)

Arguments

object

An instance of S4 class bcgpmodel.

Details

This returns an instance of S4 class bcgpmodel. It is generally meant to update the starting values for the Markv chains after the user has changed the prior distributions in an instance of class bcgpmodel. The new initial values are simulated from the prior distribution, ensure they are within the support of the posterior distribution.

Value

An instance of S4 class bcgpmodel containing initial values randomly from the prior distributions for all the parameters

See Also

bcgpmodel

Other preprocessing functions: bcgpmodel, create_parameter_list

Examples

1
2
3
4
5
6
simData <- bcgpsims(composite = TRUE, stationary = FALSE, noise = FALSE)
model <- bcgpmodel(x = simData@training$x, y = simData@training$y,
                   composite = TRUE, stationary = FALSE, noise = FALSE,
                   scaled = TRUE, chains = 4L)
model@priors$w$lower <- 0.75
model <- update_inits(model)

cbdavis33/bcgp documentation built on Oct. 1, 2019, 8:07 a.m.