Dear list members,
I am trying to fit a natural cubic spline to my dataset using the ns
function in the splines package.
Specifically, I do:
library(splines)
lm(y ~ ns(x, df=3), data =data)
How do I extract the values of the interior knots of the fitted spline ?
Thanks,
Rajat
Hi All,
I wish to thank all you guys out there. This is because of the help from you
guys I am able to learn how to use R in a short time.
Thanking you again for the help and quick responses.
Regards,
Rajat
--
Rajat,
PhD student
Industrial Engineering,
Texas Tech University,
Lubbock, TX, USA
I am solving the following question. I want to label the data. I used the
following code.
data82 - read.table(file=/home/rajat/R/8_2_rtg.txt,header=T)
data82 - data.frame(data82)
data82
low_sat med_sat high_sat contact housing
1 65 54 100 1 1
2 130 76
3 matches
Mail list logo