simsynth: Simulating from a synthesized object

View source: R/sim.synth.R

simsynthR Documentation

Simulating from a synthesized object

Description

Simulating from a synthesized object

Usage

simsynth(object, n = 200, drop.latent = FALSE, ...)

Arguments

object

generated with synthesize

n

sample size

drop.latent

if TRUE remove the latent event times from the resulting data set.

...

additional arguments passed on to lava::sim

Examples

library(survival)
m=synthesize(Surv(time,status)~sex+age+bili,data=pbc)
simsynth(m,10,drop.latent=TRUE)


riskRegression documentation built on May 29, 2024, 10:59 a.m.