Description Usage Arguments Value Model Description See Also
View source: R/moretrees_init_rand.R
Here's a brief description.
moretrees_init_rand
Randomly generates starting values for moretrees
models. Not recommended if the model is converging slowly!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | moretrees_init_rand(
X,
W,
y,
outcomes_units,
outcomes_nodes,
ancestors,
xxT,
wwT,
initial_values,
update_hyper,
hyper_fixed,
vi_random_init,
hyper_random_init
)
|
xxT |
Computed from exposure matrix X |
wwT |
Computed from covariate matrix W |
update_hyper |
Update hyperparameters? Default = TRUE. |
hyper_fixed |
Fixed values of hyperparameters to use if update_hyper = FALSE. If family = "bernoulli", this should be a list including the following elements: tau (prior variance for sparse node coefficients) rho (prior node selection probability for sparse node coefficients) omega (prior variance for non-sparse node coefficients) If family = "gaussian", in addition to the above, the list should also include: sigma2 (variance of residuals) |
vi_random_init |
A list with parameters that determine the distributions from which the initial VI parameters will be randomly chosen. All parameters will be randomly selected from independent normal distributions with the standard deviations given by the list elements below. If multiple random restarts are being used, it is recommended to use large standard deviations for these initial values so that the parameter space can be more effectively explored. The list contains the following elements: mu_sd (standard deviation for posterior means of sparse node coefficients) delta_sd (standard deviation for posterior means of non-sparse node coefficients) xi_sd (standard deviation for auxilliary parameters xi— for bernoulli data only) |
hyper_random_init |
If update_hyper = TRUE, this is a list containing the maximum values of the hyperparameters. Each hyperparameter will be initialised uniformly at random between 0 and the maximum values given by the list elements below. If multiple random restarts are being used, it is recommended to use a large range for these initial values so that the parameter space can be more effectively explored. The list contains the following elements: tau_max (maxmimum of prior sparse node variance) omega_max (maximum of prior non-sparse node variance) sigma2_max (maximum of residual error variance— for gaussian data only) |
dsgn |
Design list generated by moretrees_design_tree() |
A list containing starting values
Describe MOReTreeS model and all parameters here.
Other MOReTreeS functions:
moretrees_compute_betas()
,
moretrees_compute_thetas()
,
moretrees_design_matrix()
,
moretrees_design_tree()
,
moretrees_init_W_logistic()
,
moretrees_init_logistic()
,
moretrees()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.