Description Usage Arguments Details Value Examples
Simulate sample for parameters in ougbm model given a set of hyper parameters
1 2 3 4 | ougbmprior(
prior.model.params = prior.model.params,
prior.reg.params = prior.reg.params
)
|
prior.model.params |
A vectors of hyper parameters for model parameter containing (alpha.y.min, alpha.y.max) for alpha.y, (sigmasq.x.min, sigmasq.x.max) for sigmasq.x, (tau.y.min, tau.max) for rate parameter of tau |
prior.reg.params |
A vector of hyper paramter for regression parameters. (b0.min,b0.max) for b0, (b1.min,b1.max) for b1, (b2.min,b2.max) for b2 |
The function requires user to input hyper parameters for α_y, σ^2_x,τ and hyper parameters for regression parameters b_0,b_1,b_2 from uniform distribution with its minimum and maximum values.
Returns the samples of model parameters and regression parameter
1 2 3 4 5 6 7 8 9 | prior.model.params<-c(0,3,0,3,0,1)
names(prior.model.params)<-c("alpha.y.min","alpha.y.max",
"tau.min","tau.max","sigmasq.x.min","sigmasq.x.max")
prior.reg.params<-c(-3, 3, -3, 3, -3, 3)
names(prior.reg.params)<-c("b0.min", "b0.max", "b1.min", "b1.max", "b2.min", "b2.max")
ougbmprior(prior.model.params=prior.model.params,prior.reg.params=prior.reg.params)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.