update.zitobitQR: Model update

Description Usage Arguments Value See Also Examples

View source: R/update.zitobitQR.R

Description

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

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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 Dec. 10, 2018, 1 p.m.