lqmm.BQt: 'lqmm.BQt' fits linear quantile mixed model

Description Usage Arguments Value Author(s) References Examples

View source: R/lqmm.BQt.R

Description

Function using JAGS to estimate the linear quantile mixed model assuming asymmetric Laplace distribution for residual error.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
lqmm.BQt(
  formFixed,
  formRandom,
  formGroup,
  data,
  tau,
  RE_ind = FALSE,
  n.chains = 1,
  n.iter = 10000,
  n.burnin = 5000,
  n.thin = 5,
  n.adapt = 5000,
  quiet = FALSE,
  precision = 10
)

Arguments

formFixed

formula for fixed part of longitudinal submodel with response variable

formRandom

formula for random part of longitudinal submodel without response variable

formGroup

formula specifying the cluster variable (e.g. = ~ subject)

data

dataset of observed variables

tau

the quantile(s) to be estimated. This must be a number between 0 and 1, otherwise the execution is stopped. If more than one quantile is specified, rounding off to the 4th decimal must give non–duplicated values of tau, otherwise the execution is stopped.

RE_ind

Boolean denoting if the random effects are assumed independent ; default is FALSE

n.chains

the number of parallel chains for the model; default is 1.

n.iter

integer specifying the total number of iterations; default is 10000

n.burnin

integer specifying how many of n.iter to discard as burn-in ; default is 5000

n.thin

integer specifying the thinning of the chains; default is 1

n.adapt

integer specifying the number of iterations to use for adaptation; default is 5000

quiet

see rjags package

precision

variance by default for vague prior distribution

Value

A BQt object is a list with the following elements:

coefficients

list of posterior median for each parameter

modes

list of posterior mode for each parameter

StErr

list of standard error for each parameter

StDev

list of standard deviation for each parameter

ICs

list of the credibility interval at 0.95

data

data included in argument

sims.list

list of the MCMC chains of the parameters excepted random effects

control

list of arguments giving details about the estimation

postMeanq

data including posterior mean of subject-specific random effects

postVars

list of subject-specific random effect covariance matrix

Author(s)

Antoine Barbieri

References

Marco Geraci and Matteo Bottai (2014). Linear quantile mixed models. Statistics and Computing, 24(3):461-479. doi: 10.1007/s11222-013-9381-9.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#---- Orthodont data from lqmm package
data("Orthodont", package = "lqmm")

#---- Fit regression model for the first quartile
BQt_025 <- lqmm.BQt(formFixed = distance ~ age,
                    formRandom = ~ age,
                    formGroup = ~ Subject,
                    data = Orthodont,
                    tau = 0.25)

#---- Get the estimated coefficients
BQt_025$coefficients

#---- Summary of output
summary.BQt(BQt_025)

AntoineBbi/BQt documentation built on Jan. 8, 2020, 4:13 a.m.