Displaying 3 results from an estimated 3 matches for "data_train".
2013 Jan 04
1
Predicting New Data -
I am having trouble predicting new data with a model created from package
mboost:
> mb1<-glmboost(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 dat...
2008 Dec 23
1
newbie problem using Design.rcs
...rstand how to use Design.rcs by using simple test data first. I use 1000 integer values (1,...,1000) for x (the predictor) with some noise (x+.02*x) and I set the response variable y=x. Then, I try rcs and ols as follows:
m = ( sqrt(y1) ~ ( rcs(x1,3) ) ); #I tried without sqrt also
f = ols(m, data=data_train.df);
print(f);
[I plot original x1,y1 vectors and the regression as in
y <- coef2[1] + coef2[2]*x1 + coef2[3]*x1*x1]
But this gives me a VERY bad fit:
"
Linear Regression Model
ols(formula = m, data = data_train.df)
n Model L.R. d.f. R2 Sigma
1000...
2008 Dec 29
0
Serial Correlation Test for Short Time Series
...rstand how to use Design.rcs by
using simple test data first. I use 1000 integer values (1,...,1000) for x
(the predictor) with some noise (x+.02*x) and I set the response variable
y=x. Then, I try rcs and ols as follows:
m = ( sqrt(y1) ~ ( rcs(x1,3) ) ); #I tried without sqrt also
f = ols(m, data=data_train.df);
print(f);
[I plot original x1,y1 vectors and the regression as in
y <- coef2[1] + coef2[2]*x1 + coef2[3]*x1*x1]
But this gives me a VERY bad fit:
"
Linear Regression Model
ols(formula = m, data = data_train.df)
n Model L.R. d.f. R2 Sigma
1000...