simulate_time {ushr}R Documentation

Simulate timepoints for subjects

Description

This function chooses the correct function for sampling observation times.

Usage

simulate_time(npoints, censortime, id, index, max_datapoints)

Arguments

npoints

numeric value indicating the number of observations to be sampled.

censortime

numeric value indicating the maximum time point to include in the analysis.

id

subject id. Can be numeric or a character.

index

numeric identifier for each subject/model combination.

max_datapoints

numeric value indicating the maximum number of data points collected from any subject.


[Package ushr version 0.2.3 Index]