Skip to content
Prev 361735 / 398506 Next

is there a package in R or functions to calculate odds/hasard ratio from spline regression

It's not yet clear what  you want to do. Odds ratios are easily calculated from logistic regression models (typically constructed with the glm function the stats package) and hazard ratios are easily calculated from survival models (typically constructed with survreg or coxph in the survival package). All those functions accept spline terms in their formula versions. There are many worked examples that could be found with google searching since google now properly interprets the letter "r" as referring to the computer language. You can get a more focussed search using rseek.com.
You should read the posting guide. Rhelp is a plain text mailing list.
David Winsemius
Alameda, CA, USA