Learn R Programming

anovir (version 0.1.0)

recovery_data_II: Simulated recovery data, with no background mortality

Description

Simulated data allowing for recovery from infection, when there is no background mortality.

Usage

recovery_data_II

Arguments

Value

A dataframe

columns 1-2

indicator variables identifying individuals in the control treatment that died (control.d = 1) or were censored (control.c = 1)

columns 3-4

indicator variables identifying individuals in the infected treatment that died (infected.d = 1) or were censored (infected.c = 1) while still infected

columns 5-6

indicator variables indenifying individuals in the infected treatment that died (recovered.d = 1) or were censored (recovered.c = 1) after recovering from infection

censor

'0' not censored, '1' censored

d

death indicator: '1' died, '0'

t

time of the event (death or censoring)

fq

frequence or number of individuals associated with the event of death or censoring at time t

Format

An object of class data.frame with 120 rows and 10 columns.

Examples

Run this code
# NOT RUN {
head(recovery_data_II) ; tail(recovery_data_II)
# }

Run the code above in your browser using DataLab