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 interested readers,
I have a function that creates several functions within a loop and I would like
them to be returned for further use as follows:
Main.Function(df,...){
# df is a multivariate data
funcList<-list(NULL)
for (i in 1:ncol(df)){
temp<-logspline(df[,i],...) # logspline density es
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
4 matches
Mail list logo