update.zitobitQR: Model update

View source: R/update.zitobitQR.R

update.zitobitQRR Documentation

Model update

Description

This function updates the chains for a model fitted by the function zitobitQR.

Usage

## S3 method for class 'zitobitQR'
update(object, itNum, thin = 1, sigmaGamma, ...)

Arguments

object

Fitted model by the function zitobitQR

itNum

Size of the chain that will be added to the current available chain.

thin

Thinning parameter for the chains.

sigmaGamma

Tuning parameter for the Metropolis-Hasting part of the algorithm.

...

other summary parameters (currently not used)

Value

A list with the updated chains.

See Also

zitobitQR

Examples

## Not run: 
set.seed(1)
data("BrazilDurableGoods")
# Change the number of iterations for better results.
model <- zitobitQR(expenditure ~ age + education, tau = 0.5,
                  data = BrazilDurableGoods, itNum = 100,
                  sigmaGamma = 0.10, refresh = 20)
model <- update(model, 100, thin=1, sigmaGamma = 0.10, refresh=10)

## End(Not run)

brsantos/baquantreg documentation built on Feb. 8, 2023, 8:18 a.m.