View source: R/sample.jointdata.R
sample.jointdata | R Documentation |
jointdata
xGeneric function used to sampling a subset of data from an x of
class jointdata
, with a specific size of number of subjects.
sample.jointdata(x, size, replace = FALSE)
x |
an object of class |
size |
number of subjects to include in the sampled subset. |
replace |
should sampling be with replacement? Default is |
An object of class jointdata
, with data only on the subjects
sampled.
Ines Sousa
sample
, jointdata
,
UniqueVariables
.
data(heart.valve) heart.surv <- UniqueVariables(heart.valve, var.col = c("fuyrs", "status"), id.col = "num") heart.valve.jd <- jointdata(survival = heart.surv, id.col = "num", time.col = "time") sample.jointdata(heart.valve.jd, size = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.