powered by
Finding the two cut-off points
findCutoffs(spm.fit, dataC)
Data frame containing age, fitted lnOR, OR, se, sp, sse, and ssp
Fitted semi-parametric model object
Data frame containing age and binary outcome variables
# 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