simGG: A method for plotting simulation objects created by simPH

Description Usage Arguments References See Also Examples

View source: R/simGG.R

Description

simGG a method for ploting simulation objects created by simPH.

Usage

1
simGG(obj, ...)

Arguments

obj

an object created by one of simPH's simulation commands.

...

arguments to be passed to methods.

References

Gandrud, Christopher. 2015. simPH: An R Package for Illustrating Estimates from Cox Proportional Hazard Models Including for Interactive and Nonlinear Effects. Journal of Statistical Software. 65(3)1-20.

See Also

simGG.siminteract, simGG.simtvc, simGG.simlinear, simGG.simpoly, simGG.simspline

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
 # Load Carpenter (2002) data
data("CarpenterFdaData")

# Load survival package
library(survival)

# Run basic model
M1 <- coxph(Surv(acttime, censor) ~ lethal*prevgenx,
            data = CarpenterFdaData)

# Simulate Marginal Effect of lethal for multiple
# values of prevgenx
Sim1 <- coxsimInteract(M1, b1 = "lethal", b2 = "prevgenx",
                       X2 = seq(2, 115, by = 5), spin = TRUE)

# Plot simulations
simGG(Sim1)

## End(Not run)

christophergandrud/simPH documentation built on Oct. 14, 2021, 7:02 a.m.