Simulated infection testing data
Format
infsim has 3600 rows, with 36 state observations for each of 100 people. A smaller dataset infsim2 has only 360 rows, from 20 people, and
is simulated using a sojourn time of 60 days in the test-negative state
and 10 days in test-positive.
Columns are:
subjectSubject identifierdaysObservation time (in days)monthsObservation time (in moths)stateState simulated from a Markov model with no covariatessex: "male" or "female".age10: Age, in units of 10 years since age 50statec: State simulated from a Markov model with covariatesstatep: State simulated from a phase-type model (unused in any examples. Seedata-raw/infsim.Rin the source for simulation settings)statepc: State simuated from a phase-type model with covariates (unused in any examples)
An object of class data.frame with 360 rows and 14 columns.
Details
The transition intensities used for the simulation are defined using a mean sojourn time of 180 days in the "test negative" state and 10 days in the "test positive" state.
For the model with covariates, the log hazard ratios are
2 for male on the 1-2 transition, 1 for age10 on the 1-2 transition,
and -1 for age10 on the 2-1 transition. Baseline intensities are
for female, age 50 (i.e. age10= 0).
In the state data, state 1 is negative and 2 is positive.