Displaying 3 results from an estimated 3 matches for "data_test".
Did you mean:
data_temp
2012 Aug 05
1
Problem with segmented function
Hi,
I appreciate your help with the segmented function. I am relatively new to
R. I followed the introduction of the 'segmented'-package by Vito Muggeo,
but still it does not work.
Here are the lines I wrote:
data_test<-data.frame(x=c(1:10),y=c(1,1,1,1,1,2,3,4,5,6))
lr_test<-lm(y~x,data_test)
seg_test<-segmented(lr_test,seg.Z~x,psi=1)
/error in segmented.lm(lr_test, seg.Z ~ x, psi = 1) :
A wrong number of terms in `seg.Z' or `psi'/
Thank you very much,
Stella
--
View this message in conte...
2005 Feb 03
1
Memory Cap
...not keen on allocating memory to large arrays. I have
attached the *.R file. Is there anyway that I could turn off the memory
cap and allow R to take a larger set of data files.
Thanks Wesley
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: data_test.R
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050203/ab947ac4/data_test.pl
2013 Jan 04
1
Predicting New Data -
...as.formula(formula1),data=data_train,control=boost_control(mstop=400,nu=.1))
> f.predict<-predict(mb1,newdata=data_train)
Error in scale.default(X, center = cm, scale = FALSE) :
length of 'center' must equal the number of columns of 'x'
Ultimately I want to predict "data_test", but the orginal dataset won't even
work. However, predict(mb1) does work. What am I doing wrong?
--
View this message in context: http://r.789695.n4.nabble.com/Predicting-New-Data-tp4654677.html
Sent from the R help mailing list archive at Nabble.com.