[R] Extracting the knots of a natural cubic spline fit

2013-03-12 Thread Rajat Tayal
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

[R] Thank You All for the help

2009-04-17 Thread 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

[R] Unable to mark labels

2009-04-13 Thread Rajat
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