calcHAZVector: calHAZVector

Description Usage Arguments Details Value Examples

Description

Computes a vector of individual HAZ values based on the FREM model.

Usage

1
2
3
4
calcHAZVector(age, basethetas = NULL, covthetas = rep(0,
  length(basethetas)), etas = rep(0, length(basethetas)), BASE, PLMAX, HLKON,
  HLKOFF, BASSL, BP, BASECOV = 0, PLMAXCOV = 0, HLKONCOV = 0,
  HLKOFFCOV = 0, BASSLCOV = 0, BPCOV = 0)

Arguments

age

A vector of ages (in years) for which to compute the HAZ values.

basethetas

A vector of base model thetas (fixed effects).

covthetas

A vector with the FFEM, parameter specific covariate effetcs.

etas

A vecor of individual specific random effects.

BASE

The fixed effects parameter value for the BASE parameter in the FREM model.

PLMAX

The fixed effects parameter value for the PLMAX parameter in the FREM model.

HLKON

The fixed effects parameter value for the HLKON parameter in the FREM model.

HLKOFF

The fixed effects parameter value for the HLKOFF parameter in the FREM model.

BASSL

The fixed effects parameter value for the BASSL parameter in the FREM model.

BP

The fixed effects parameter value for the BP parameter in the FREM model.

BASECOV

The FFEM covariate effect for the BASE parameter in the FREM model.

PLMAXCOV

The FFEM covariate effect for the PLMAX parameter in the FREM model.

HLKONCOV

The FFEM covariate effect for the HLKON parameter in the FREM model.

HLKOFFCOV

The FFEM covariate effect for the HLKOFF parameter in the FREM model.

BASSLCOV

The FFEM covariate effect for the BASSL parameter in the FREM model.

BPCOV

The FFEM covariate effect for the BP parameter in the FREM model.

Details

The basethetas+covthetas+etas and BASE+PLMAX+HLKON+HLKOFF+BASSL+BP+(the corrsponding covariate effects) are mutually exclusive. If basethetas is provided, then the former set of arguments will be used.

Value

A vector of HAZ values as long as the vector of age.

Examples

1
2
3
4
## Not run: 
hazValues <- calcHAZVector(age = c(0,30,60,90)/(30*12),basethetas = thbasevector,covthetas = FREMCoeff,etas = IndEtas)

## End(Not run)

eniclas/FAIRsimulator documentation built on May 16, 2019, 5:12 a.m.