Learn R Programming

accept (version 1.0.0)

accept2: Predicts COPD exacerbation rate by severity level based on the updated accept2 model, which improves accuracy in patients without an exacerbation history.

Description

Predicts COPD exacerbation rate by severity level based on the updated accept2 model, which improves accuracy in patients without an exacerbation history.

Usage

accept2(
  patientData,
  random_sampling_N = 100,
  lastYrExacCol = "LastYrExacCount",
  lastYrSevExacCol = "LastYrSevExacCount",
  KeepSGRQ = TRUE,
  KeepMeds = TRUE,
  ...
)

Value

patientData with prediction

Arguments

patientData

patient data matrix. Can have one or many patients in it

random_sampling_N

number of random sampling. Default is 100.

lastYrExacCol

the column specifying last year all exacerbation count

lastYrSevExacCol

the column specifying last year severe exacerbation count

KeepSGRQ

default is TRUE. If set to false, the reduced model without SGRQ will be used.

KeepMeds

default is TRUE. If set to false, the reduced model without medication predictors will be used.

...

for backward compatibility

Examples

Run this code
results <- accept2(samplePatients)

Run the code above in your browser using DataLab