update.expectreg: Update given expectreg model

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/update.expectreg.R

Description

Updates a given expectreg model with the specified changes

Usage

1
2
3
4
## S3 method for class 'expectreg'
update(object, add_formula, data = NULL, estimate = NULL, 
smooth = NULL, lambda = NULL, expectiles = NULL, delta_garrote = NULL, ci = NULL, 
...)

Arguments

object

of class expectreg

add_formula

update for formula

data

Should other data be used

estimate

Change estimate

smooth

Change smooth

lambda

Change lambda

expectiles

Change asymmetries

delta_garrote

Change delta_garrote

ci

Change ci

...

Details

Re-estimates the given model, with the specified changes. If nothing is specified the characteristics of the original model are used. Except lambda here the default 1 is used as initial value.

Value

object of class expectreg

Author(s)

Elmar Spiegel
Georg August University Goettingen
http://www.uni-goettingen.de

See Also

update, update.formula

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(india)

model1<-expectreg.ls(stunting~rb(cbmi),smooth="fixed",data=india,lambda=30,
                     estimate="restricted",expectiles=c(0.01,0.05,0.2,0.8,0.95,0.99))
plot(model1)

# Change formula and update model
add_formula<-.~.+rb(cage)
update_model1<-update(model1,add_formula)
plot(update_model1)

# Use different asymmetries and update model
update_model2<-update(model1,expectiles=c(0.1,0.5,0.9))
plot(update_model2)

expectreg documentation built on Aug. 24, 2019, 1:05 a.m.