> I am trying to detrend and transform variables to achieve
> normality and stationarity (for time series use, namely spectral
> analysis). I am using the boxcox transformations.
>
>
>
> As my dataset contains zeros, I found I need to add a constant to
> it in order to run "boxcox". 

If your data are continuous with exact zeros, and contain a lot of 
zeros, no transformation may help.  You simply map a stack of zeros 
to some other value.  Box--Cox transforms are not really designed 
for this.

If your data really is continuous with exact zeros, other options 
exist such as hurdle models, Tweedie glms (package  tweedie) and so 
forth.

P.

-- 
Dr Peter Dunn  |  dunn <at> usq.edu.au
Faculty of Sciences, USQ; http://www.sci.usq.edu.au/staff/dunn
Aust. Centre for Sustainable Catchments: www.usq.edu.au/acsc

This email (including any attached files) is confidentia...{{dropped:15}}

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to