Displaying 2 results from an estimated 2 matches for "e_x".
Did you mean:
_x
2012 Jun 28
0
How to calculate Confidence Interval for a prediction using Partial Regression?
...a third variable (A, for Area). Multiple regression (y=a+(b*x)+(c*A))
would have collinearity problems, so I decided to do a partial regression
to predict y. I did it this way:
- I regressed y to A, and calculated the residuals (e_y) (reg1)
- I regressed x to A, and calculated the residuals (e_x) (reg2)
- I regressed e_y to e_x (reg5)
It looks like this:
y = a_0 + a_1 A (reg1)
x = b_0 + b_1 A (reg2)
e_y = y - (a_0 + a_1 A) (3)
e_x = x - (b_0 + b_1 A) (4)
e_y = beta_0 + beta_1 e_x (reg5)
Then, to predict a y_0 from a new x_0 and A_0, we would:
Calculate e_x0 with the equation (4). Calcu...
2011 Jul 28
1
sorting data from dataframe with oter dataframe
...csv.file with data on number of factors (every column got the
name
of the factor as header and the data below). on another csv file, i've got
the
factors sorted by their type. for example-
c1=read.csv('C:/R/c1.csv', header= TRUE)
urrDate A_XS b_XS c_XS d_XS e_XS
1 01/01/1996 0 0.0000 0 0.0000 2.7220
2 02/01/1996 0 2.3232 0 2.2960 2.7179
3 03/01/1996 0 2.3368 0 2.3087 2.7004
4 04/01/1996 0 2.3395 0 2.3173 2.6821
5 07/01/1996 0 2.3226 0 2.3072 2.6852
6 08/01/1996 0 2.3385...