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
How to create and define 30 minutes interval data in Stata?Dear user, My data is 30 minutes interval. I want to declare as time series. For daily time series d…
profileplotHi, I'm using Stata version 11, and despite repeated attempts, unable to download the profileplot pr…
How to make this type of graph?Hello guys, Do you have any idea how to make the chart below? It is a histogram of frequencies of …
Generating a new variable that is the sum of each value of a different variableHello. This seems like it would be straightforward but as an advanced beginner I am having a hard ti…
categorizing continuous dataHello, I would be super grateful for some help with the following scenario Maternal obesity is cons…
Subscribe to:
Post Comments (Atom)
0 Response to Transformation Box-Cox
Post a Comment