Description Usage Arguments Value Examples
View source: R/Regression_Functions.R
par_distreg
uses parallel computation to compute bayesian distribution regression for a given
vector of threshold values and a data (with first column being the continuous outcome variable)
1 2 | par_distreg(thresh, data0, fn = distreg, no_cores = 1,
type = "PSOCK", ...)
|
thresh |
vector of threshold values. |
data0 |
the original data set with a continous dependent variable in the first column |
fn |
bayesian distribution regression function. the default is distreg provided in the package |
no_cores |
number of cores for parallel computation |
type |
|
... |
any additional input parameters to pass to fn |
mat a G x M matrix of output (G is the length of thresh, M is the number of draws)
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.