[R] offset with a factor

Michael Dewey lists at dewey.myzen.co.uk
Wed Dec 20 17:22:30 CET 2017


The documentation for ?offset states that you can have more than one offset.

Michael

On 20/12/2017 14:51, Bond, Stephen wrote:
> Knowledgeable useRs,
> 
> Please, advise how to use offset with a factor. I estimate monthly effects from a much bigger data set as monthly effects seem to be stable, and other variables are estimated from a small, but recent data set as there is variation in those non-seasonal coefficients.
> How can I use the seasonality estimates from the big data set as an offset provided to the small data set. I know an offset is supposed to be quantitative, but this is such a practical and sensible scenario, I feel compelled. Assume I have 11 coefs estimated with contr.sum.
> 
> Thanks everybody
> 
> Stephen
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 

-- 
Michael
http://www.dewey.myzen.co.uk/home.html



More information about the R-help mailing list