plot.WCE: Plot of the weight function(s) estimated by 'WCE'

Description Usage Arguments Author(s) References Examples

View source: R/plot.WCE.R

Description

Method to plot the weight function(s) of a WCE object. Can plot the best estimated weight function or all the estimated functions simultaneously.

Usage

1
2
## S3 method for class 'WCE'
plot(x, allres = FALSE, ...)

Arguments

x

A WCE object

allres

Logical. If TRUE, then all the weight functions from the WCE object are plotted simultaneously. If FALSE, then only the best function, determined by AIC or BIC, is plotted. Default to FALSE.

...

Optional. Additional arguments to be passed to plot (none currently used).

Author(s)

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

References

Sylvestre MP, Abrahamowicz M. Flexible modeling of the cumulative effects of time-dependent exposures on the hazard. Stat Med. 2009 Nov 30;28(27):3437-53.

Examples

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

plot(wce)

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

Related to plot.WCE in WCE...