1
$\begingroup$

I am analyzing the number of donors cancelling commitments as a monthly time series which varies significantly with economic indicators, some according to internal data, and maybe according to season. I want to see the variance after adjusting for the economy and season (assuming the remainder of variance is due to the non-profit's behavior). Is a good way to do this to fit a linear regression model in R pseudo-code:

fit <- lm(cancels ~ economy + season)

And then use the residuals?

$\endgroup$
1
  • 1
    $\begingroup$ lm rather than ln $\endgroup$
    – Henry
    Nov 8, 2012 at 21:10

1 Answer 1

1
$\begingroup$

If your residual is high enough I believe you have explained the variance of the dependent variable by the independent variables. However, if the variance isn't explained sufficient by the independent variables you might want to consider to do a little further analysis with the help of some of the time series analysis packages that are available in R. Decomposing or STL might give you an insight into the components of the time series (trend, seasonality and randomness).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.