View source: R/rcs_quasipoisson.nshap.R
rcs_quasipoisson.nshap | R Documentation |
restricted cubic splines (RCS) published in SCI.
data |
data.frame.Rdata |
knot |
knot=3-7 or automatic calculate by AIC min |
y |
outcome=0,1 |
covs |
covariables, univariate analysis without "covs" command, multivariable analysis with "covs" command |
prob |
position parameter,range from 0-1 |
x |
main exposure and X-axis when plotting |
filepath |
path of plots output. |
quasipoisson models with RCS splines were performed to explore the shape linear or nonlinear(U, inverted U,J,S,L,log,-log,temporary plateau shape)
message.print PH assumption and other message
Zhiqiang Nie, niezhiqiang@gdph.org.cn
library(rcssci) rcs_quasipoisson.nshap(data=sbpdata, y = "status",x = "sbp", prob=0.1,filepath=tempdir()) # library(rcssci) # rcs_quasipoisson.nshap(knot=4,data=sbpdata, y = "status",x = "sbp", # covs=c("age","gender"),prob=0.1,filepath="D:/temp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.