nlcom: Estimate nonlinear combinations of nlsur estimates

View source: R/nlcom.R

nlcomR Documentation

Estimate nonlinear combinations of nlsur estimates

Description

Estimate nonlinear combinations of nlsur estimates

Usage

nlcom(object, form, alpha = 0.05, rname, envir)

Arguments

object

of class nlsur

form

formula e.g. "be/bk". May contain names(coef(object)) or prior nlcom estimations.

alpha

value for conf. interval default is 0.05

rname

optional rowname for result

envir

optional name of environment to search for additional parameters

See Also

deltaMethod

Examples

## Not run: 
dkm <- nlcom(object = erg, form = "-dkk -dkl -dke", rname = "dkm")
dkm

dlm <- nlcom(object = erg, form = "-dkl -dll -dle", rname = "dlm")
dlm

dem <- nlcom(object = erg, form = "-dke -dle -dee", rname = "dem")
dem

dmm <- nlcom(object = erg, form = "-dkm -dlm -dem", rname = "dmm")
dmm

# last one is equivalent to the longer form of:
dmm <- nlcom(object = erg,
 form = "-(-dkk -dkl -dke) -(-dkl -dll -dle) -(-dke -dle -dee)")
dmm

## End(Not run)


JanMarvin/nlsur documentation built on June 24, 2024, 2:58 a.m.