Description Usage Arguments Value Author(s) Examples
Runs a MCMC algorithm to fit a quantile regression model, using Gaussian and Dirichlet Processes. Returns a GPDP_MCMC object with thinned chains. Scales data in the process so the induced correlation makes sense, and unscales at the end. Take it into account for the initial parameters.
1 2 3 4 5 | GPDPQuantReg(
formula, data, p = 0.5, c_DP = 2, d_DP = 1, c_lambda = 2,
d_lambda = 0.5, alpha = sqrt(nrow(data)), M = zero_function,
mcit = 3e4, burn = 1e4, thin = 10
)
|
formula |
formula object with the dependent and independent variables |
data |
data frame |
p |
real between (0,1), probability corresponding to the estimated quantile |
c_DP |
real > 0, shape parameter for the DP's base distribution |
d_DP |
real > 0, scale parameter fot the DP's base distribution |
c_lambda |
real > 0, shape parameter for the GP's lambda distribution |
d_lambda |
real > 0, scale parameter fot the GP's lambda distribution |
alpha |
real > 0, DP's concentration parameter |
M |
function, a priori estimation for the final function |
mcit |
integer > 0, number of MCMC algorithm's valid chains |
burn |
integer > 0, number of MCMC algorithm's first burned chains |
thin |
integer > 0 and < mcit, MCMC algorithm's thinning |
GPDP_MCMC object, with the MCMC algorithm's chains
Omar Pardo (omarpardog@gmail.com)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.