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

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)

Arguments

dataC

Data frame containing age and binary outcome variables

Value

Fitted semi-parametric model object

Examples

# 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)

[Package TCPMOR version 1.0 Index]