fitSemiParamModel {TCPMOR} | R Documentation |
Fit the data using a semi-parametric model to explore the nonlinear dose-response relationship between the independent variable and lnOR
fitSemiParamModel(dataC)
dataC |
Data frame containing age and binary outcome variables |
Fitted semi-parametric model object
# Generate simulated data dataC
dataC <- createData(200)
# Plot the nonlinear dose-response relationship between the independent variable and lnOR
spm.fit <- fitSemiParamModel(dataC)
plot(spm.fit,ylab = "lnOR",xlab = "age",shade = FALSE)
summary(spm.fit)