Description Usage Arguments Details Value Examples
Other notes
1 2 3 | rjmonopoly(x, y, d_min = 2, d_max = 10, iter = 50000, prior_option = NA,
prior_prob = 0.5, starting_var_val = 0.001, control = list(innov_sd_beta
= 0.025, innov_sd_var = 0.025), progress = TRUE)
|
x |
vector of x values |
y |
vector of y values |
d_min |
minimum allowable polynomial degree |
d_max |
maximum allowable polynomial degree |
iter |
number of iterations |
prior_option |
if NA is replaced with the string: "flat", then a flat prior for the variance will be used instead of a pseudo binomial prior. |
prior_prob |
probability for binomial prior |
starting_var_val |
starting value for variance |
control |
(optional) list of innovation variances |
progress |
turn the progress bar on / off. TRUE is the default, and will show the progress bar. |
Note that the samples for Gamma and Sigma^2 are on the orthonormal scale.
object of type rjmonopol_fit containing lists of samples for all regression parameters
1 2 3 4 5 6 7 | ## Not run:
library(fda)
x <- onechild$day
y <- onechild$height
fit <- rjmonopoly(x, y)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.