SelectData | R Documentation |
yy
SelectData(d, t)
d |
data set generated with GenData function. |
t |
time at which we want the available data. |
xxx
input dataset with less rows and NA where appropriate.
Paul Blanche
x <- GenData(n=50)
head(x$d,n=20)
tail(x$d)
y <- SelectData(x$d,t=4)
head(y)
tail(y)
PlotProgress(x$d,at=4)
#----- select when half of the subjects have one follow-up measuement---
# which depends on accrual rate (ar)
x <- GenData(n=35)
thear <- 10
thet <- x$d$t2[ceiling(nrow(x$d)/2) + ceiling(thear)]
PlotProgress(x$d,at=thet)
y <- SelectData(x$d,t=thet)
y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.