Hello!
When testing the normality of the residuals of a multiple regression by OLS, I found that these are not normal. I tried to perform a correction by Box-cox on the dependent through the command bcskew0. However, no conversion is performed.
I tried the general command by: boxcox btdt var_rec var_inv lagbtdt, lrtest , but the error appeared:
btdt contains observations that are not strictly positive
r(411);
[P] error . . . . . . . . . . . . . . . . . . . . . . . . Return code 411
nonpositive values encountered
__________ has negative values
time variable has negative values
For instance, you have used graph with the xlog or ylog options,
requesting log scales, and yet some of the data or the labeling
you specified is negative or zero.
Or perhaps you were using ltable and specified a time variable
that has negative values.
(end of search)
The independent variable is continuous, and in fact, has negative values.
My question is: is it not possible to box-cox variables that have negative values? What would be the problem I am facing with my database?
Help me please!
Related Posts with Transformation Box-Cox
drop/keep with multiple conditional statementHi everyone, A sample of my data looks as follows (my current data). I am trying to keep those obser…
Chi-square for subsampleHi all, A snapshot of my data is below (I have 950 data points, so its only a small section). I am r…
Alternative of Cronbach alpha (for single item measures)Hi, I've data on patients subjective health measured by a single question "How is your health today"…
Interaction terms between a dummy and continuous variableHi all, I am running a fixed effects model on a data set with 18 states from 1970 to 2018. State wi…
trend and timeI want regress difference model in panel data. using two year data, for example, I want to estimate …
Subscribe to:
Post Comments (Atom)
0 Response to Transformation Box-Cox
Post a Comment