SelectData: Select available longitudnal data for analysis at a specific...

View source: R/SelectData.R

SelectDataR Documentation

Select available longitudnal data for analysis at a specific follow-up time.

Description

yy

Usage

SelectData(d, t)

Arguments

d

data set generated with GenData function.

t

time at which we want the available data.

Details

xxx

Value

input dataset with less rows and NA where appropriate.

Author(s)

Paul Blanche

Examples

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


paulowhite/DelayedGSD documentation built on Nov. 1, 2023, 5:36 p.m.