Learn R Programming

TCPMOR (version 1.0)

fitSemiParamModel: Fit the data using a semi-parametric model to explore the nonlinear dose-response relationship between the independent variable and lnOR

Description

Fit the data using a semi-parametric model to explore the nonlinear dose-response relationship between the independent variable and lnOR

Usage

fitSemiParamModel(dataC)

Value

Fitted semi-parametric model object

Arguments

dataC

Data frame containing age and binary outcome variables

Examples

Run this code
# 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)

Run the code above in your browser using DataLab