The goal of sybilepi is to provide an interface to the Sybil-Epi lung
cancer risk prediction model for the R language.
You can install the development version of sybilepi from
GitHub with:
# install.packages("pak")
pak::pak("mattwarkentin/sybilepi")Load the sybilepi package, construct a data frame with the necessary
columns, and pass the data to predict_SybilEpi(...).
library(sybilepi)
df <- data.frame(
age = 66.08055556,
bmi = 29.64582054,
copd = 0,
education = 6,
ethnicity = "White",
family_history = 0,
personal_history = 1,
smoking_duration = 43,
smoking_intensity = 20,
smoking_quit = 0,
smoking_status = 0,
risk_sybil_6_year = 0.034103291
)
predict_SybilEpi(df)
#> [1] 0.03773142Please note that the sybilepi project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.