Skip to content
Prev 361744 / 398506 Next

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

Not just difficult, but also generally unwise to attempt interpretation of individual spline coefficients.
Natural splines are third degree, although generally the number of knots is 1 less than the degree of the polynomial.
The predict.* functions will generally handle that difficulty naturally. Each of hte regression functions will have a specific `predict` method for the class of model object. You simply provide the values for the covariates in a dataframe and a prediction for for total of associated terms will be returned. See:

?predict.glm

Std errors are generally available if the proper parameters are offered to the function. This procedure should be exemplified in the help documents and vignettes of the packages with whatever regression function you anticipate using. On the Rhelp mailing list you are requested to present questions with sufficient code to support a coding response.