library(rcssci)
rcs_linear.prob(data=sbpdata, y = "sbp",x = "age",
prob=0.1,filepath=tempdir())
# library(rcssci)
# rcs_linear.prob(knot=4,data=sbpdata, y = "sbp",x = "age",
# covs=c("gender"),prob=0.1,filepath="D:/temp")
Run the code above in your browser using DataLab