How to predict single values in R

You’re using the incorrect X variable name in your call to predict (it should be called the same as the X variable you used when you created the initial model) Although not necessary, its typical to have meanValuesHeatingPower and meanValuesOutsideTemperature as columns in the same dataframe, and then pass that dataframe in to data when creating the model The following works for me:

how to use the Box-Cox power transformation in R

Box and Cox (1964) suggested a family of transformations designed to reduce nonnormality of the errors in a linear model. In turns out that in doing this, it often reduces non-linearity as well. Here is a nice summary of the original work and all the work that’s been done since: http://www.ime.usp.br/~abe/lista/pdfm9cJKUmFZp.pdf You will notice, however, that the log-likelihood … Read more