makePPTList_reclassify: Make Powerpoint list for reclassification

Description Usage Arguments Examples

View source: R/reclassify.R

Description

Make Powerpoint list for reclassification

Usage

1
2
3
4
5
6
7
makePPTList_reclassify(
  fit1,
  fit2,
  labels,
  cutoff = c(0, 0.1, 0.35, 1),
  cutoff2
)

Arguments

fit1, fit2

An object of class glm

labels

Optioanl labels for initial model and updated model

cutoff, cutoff2

A numeric vector Cutoff values for risk categories for initial and updated model

Examples

1
2
3
4
5
6
form1=paste0("AMD~",paste0(colnames(ExampleData)[3:10],collapse="+"))
form2=paste0("AMD~",paste0(colnames(ExampleData)[3:16],collapse="+"))
fit1=glm(as.formula(form1),data=ExampleData,family=binomial)
fit2=glm(as.formula(form2),data=ExampleData,family=binomial)
labels=c("Without Genetic Factor","With Genetic Factor")
data=makePPTList_reclassify(fit1,fit2,labels=labels)

cardiomoon/webr2 documentation built on April 24, 2020, 9:44 p.m.