knotsWCE: Obtain the placement of the knots used for splines in WCE...

Description Usage Arguments Value Author(s) References Examples

View source: R/knotsWCE.R

Description

This function extracts the knots placement for the spline function used to fit the WCE models.

Usage

1

Arguments

x

A WCE object returned by WCE.

Value

Returns a list of vectors indicating the placement of the knots used in the spline function of each of the models fitted in the WCE object.

Author(s)

Marie-Pierre Sylvestre
marie-pierre.sylvestre@umontreal.ca

References

Sylvestre, M. P., & Abrahamowicz, M. (2009). Flexible modeling of the cumulative effects of time-dependent exposures on the hazard. Statistics in medicine, 28(27), 3437-3453.

Examples

1
2
3
4
5
wce <- WCE(drugdata, "Cox", 1, 90, constrained = "R", id = "Id", event = "Event",
		   start = "Start", stop = "Stop", expos = "dose", 
		   covariates = c("age", "sex"))

knotsWCE(wce)

WCE documentation built on May 2, 2019, 3:35 p.m.

Related to knotsWCE in WCE...