Description Arguments Value Author(s)
factorQR
is an MCMC sampler to fit a Bayesian factor model for
quantile regression.
factorForm |
A formula of the form |
nonFactorForm |
An optional formula of the form |
dataSet |
An optional data frame, list, or environment containing the variables in the model. |
pQuant |
Response quantile to model. Defaults to |
whichFactor |
Vector of indicators to show factor grouping. E.g., if |
nSamp |
Number of MCMC iterations, with a default of |
burn |
Iterations of burn-in, with a default of |
thin |
Number of iterations to skip between stored values in the chain, with a default of |
cTau0 |
Prior shape for τ, which is the inverse scale of the response. Defaults to |
dTau0 |
Prior scale for τ. |
cPsi0 |
Prior shape for Ψ, the inverse scale of the manifest variables related to the factors. Defaults to |
dPsi0 |
Prior rate for Ψ. Defaults to |
sig0 |
Hyperparameter for scale of free Λ_{-s}
variables, which is rows of the factor loading matrix that do not
correspond to the response. Defaults to |
mu0 |
Prior mean for Λ_{-s} components. Defaults
to |
R0 |
Prior scale of Φ^{-1}. If not specified, defaults to the identity matrix. |
nu0 |
Prior degrees of freedom for inverse Wishart associated with Φ. Must be an integer greater than or equal to the dimension of Φ, but defaults to one greater than that dimension. |
B0s |
Prior precision (i.e., inverse variance) for Λ_{s}. Default is a diagonal matrix with non-zero values of |
B0Beta |
Prior precision for regression coefficients related to |
betaZero |
Starting value for β. |
PhiZero |
Initial value of Φ. |
invPsiZero |
initial value of Ψ^{-1}. |
LambdaZero |
Initial value of Λ_{-s}. Must be a scalar or vector with length equal to the number of manifest variables in the right-hand side of |
LambdaSZero |
Initial value of last row of Λ, i.e. the part that models the left-hand side of |
OmegaZero |
Initial value for latent Ω. |
verbose |
If |
storeOmega |
If |
latentInteract |
If |
interactX |
If supplied, a matrix of variables with which to interact the latent factors. Repeated columns are allowed. |
whichFactorInteract |
A vector that indicates which factors to interact with the columns of |
Returns an item of the class factorQR
composed of the following components:
param |
Matrix of sampled parameter values. |
call |
The matched call. |
nReg |
The number of regression parameters. |
betLen |
The number of β components. |
nObs |
The number of observations. |
burn |
The number of Gibbs iterations before samples were stored. |
thin |
The number of Gibbs iterations between stored values. |
nSamp |
The total number of Gibbs iterations. |
nFact |
The number of modeled latent factors. |
nFactorX |
The number of manifest variables related to the factors. |
omega |
Sampled Ω values, if |
nFactInt |
Number of factor/manifest variable interactions. |
Lane F. Burgette, Department of Statistical Science, Duke University. lb131@stat.duke.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.