Displaying 1 result from an estimated 1 matches for "seasonaliy".
Did you mean:
seasonality
2012 Sep 26
1
Running different Regressions using for loops
...un 5 regressions, with the Volume as an dependent variable and
Price, Trend & Seasonality as independent variables. I have read the above
mentioned variables in a variable called “tryout”
I am entering the following syntax in R
> for(i in 1:5)
+ {
+ result[i]=lm(Volume~Price[i]+Trend+Seasonaliy,data=tryout)
+ summary(result[i])
+ }
After running these lines…I am getting the following error message
Error in eval(expr, envir, enclos) : object 'Price' not found
Can someone help me out with this error message. Appreciate for your time
and consideration.
Thanks &...