countExample {precmed}R Documentation

Simulated data with count outcome

Description

A dataset containing a count outcome, a length of follow-up and 6 baseline covariates

Usage

data(countExample)

Format

A dataframe with 4000 rows (patients) and 9 variables:

age

age at baseline, centered to 48 years old, in years

female

sex, 0 for male, 1 for female

previous_treatment

previous treatment, "drugA", "drugB", or "drugC"

previous_cost

previous medical cost, in US dollars

previous_number_symptoms

previous number of symptoms, "0", "1", or ">=2"

previous_number_relapses

previous number of relapses

trt

current treatment, "drug0" or "drug1"

y

count oucome, current number of relapses

years

length of follow-up, in years

Examples

data(countExample)
str(countExample)
rate <- countExample$y / countExample$years

[Package precmed version 1.0.0 Index]