search for: avghdd

Displaying 1 result from an estimated 1 matches for "avghdd".

Did you mean: avgcdd
2011 Aug 24
2
Regression by factor using "sapply"
...perform a multiple regression on a single data set containing a representation of energy consumption and temperatures containing account number, usage (KWh), heating degree days (HDD) and cooling degree (CDD) days. I want to get the coefficients back from the following equation: lm(AvgKWh ~ AvgHDD + AvgCDD, data=usage) Given that the data set contains the usage of different accounts (e.g. some large energy users and some small energy users) I do not want to perform the equation just one time. Instead, I want to re-calculate the coefficients (and associated measures of goodness of fit) for...