rs_data: Data from RiksSvikt (SwedeHF)

rs_dataR Documentation

Data from RiksSvikt (SwedeHF)

Description

rs_data aims to mimic data from SwedeHF (RiksSvikt), used in the examples given in functions prep_sosdata, create_sosvar and create_deathvar.

Usage

rs_data

Format

A data frame with 500 rows and 10 variables:

id

Patient id. Not unique. Integer.

indexdtm

Index date. Combination id and date is unique. Date.

deathdtm

Date of death or 2015-12-31 (censored). Date.

outtime_death

Time to death. Numeric.

out_death_num

Event (1 = death, 0 = censored). Numeric.

out_death_char

Event (Yes = death, No = censored). Character.

out_death_fac

Event (Yes = death, No = censored). Factor.

out_hosphf

Event (1 = death, 0 = censored). Numeric.

xvar_4_num

Variable with 4 levels. Integer.

xvar_2_fac

Variable with 2 levels. Factor.


linabe/hfmisc documentation built on Oct. 10, 2022, 3:17 p.m.