Learn R Programming

TCPMOR (version 1.0)

findCutoffs: Finding the two cut-off points

Description

Finding the two cut-off points

Usage

findCutoffs(spm.fit, dataC)

Value

Data frame containing age, fitted lnOR, OR, se, sp, sse, and ssp

Arguments

spm.fit

Fitted semi-parametric model object

dataC

Data frame containing age and binary outcome variables

Examples

Run this code
# Generate simulated data dataC
dataC <- createData(200)

# Fit the semi-parametric model
spm.fit <- fitSemiParamModel(dataC)

# Find two cut-off points
dataC <- findCutoffs(spm.fit, dataC)

Run the code above in your browser using DataLab