[R] is there a package in R or functions to calculate odds/hasard ratio from spline regression
David Winsemius
dwinsemius at comcast.net
Wed Jun 15 17:56:27 CEST 2016
> On Jun 14, 2016, at 7:43 AM, takiy berrandou <takiyeddine at gmail.com> wrote:
>
> Hello,
>
> I'm looking for a package or function, which calculate OR/HR from spline
> model regression. for example in SAS it exist some MACRO helping to do that
> easiely.
>
> i had make some research on the forum here and on the web but without any
> succes.
>
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.
>
> [[alternative HTML version deleted]]
You should read the posting guide. Rhelp is a plain text mailing list.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list