pseudo: Pseudo-observations for predictions for an illness-death...

Description Usage Arguments Value Examples

View source: R/pseudo.R

Description

Computes pseudo-observations for modeling covariates effects on differents quantites of an illness-death model.

Usage

1
2
pseudo(object, t, lifeExpect, parallel = FALSE, cpus = NULL, type = NULL,
  ...)

Arguments

object

an idmloo class object returned by a call to the idmloo function

t

time horizon for prediction

lifeExpect

logical. if TRUE conmpute life expectancies, i.e., t=Inf

parallel

Logical determinating parallel (=TRUE) or sequential (=FALSE) execution

cpus

Numerical amount of CPUs requested for the cluster. If not set, values are total cores of the machines-1.

type

Type of cluster. Can be 'SOCK', 'MPI', 'PVM' or 'NWS'. Default is 'SOCK' if parallel=TRUE.

...

others parameters

maxtime

The upper limit of integration for calculations of life expectancies from Weibull parametrizations.

Value

pseudo a matrix with each row corresponding to the pseudo-observations of one individual (ordered as in the the original data set), each column presents the predicted quantities

Examples

1
pseudo.t10=pseudo(fit.loo.w, t=10,lifeExpect=FALSE, parallel = FALSE, cpus=NULL, type=NULL)

camsabathe/pseudoICD documentation built on Nov. 11, 2019, 5:27 p.m.