Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Xaxis transformation after logging variable


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Xaxis transformation after logging variable
Date   Tue, 21 Aug 2012 15:50:15 +0100

"Cox showed" (even guessing and narrowing it down to me) is not a
precise reference. But if your axis variable is log_10(variable) and
you want labels in terms of variable, you can just go something like

... xla(0 "1" 1 "10" 2 "100")

This is well documented at -help axis label options- and is no sense
limited to showing kernel density estimates.

I guess people ignored your previous question because it wasn't clear
(there are several possible generalisations oof the gamma
distribution) and was based on an incomplete reference. Still true.

Nick

On Tue, Aug 21, 2012 at 3:27 PM, Francisco Augusto
<francisco.augusto.7@gmail.com> wrote:
> Dear Statalist,
>
> I am dealing with a small problem: I am doing kernel (kdensity) of a
> logged variable and I would like to rearrange the Xaxis to be in the
> original scale and on a 10 exponential order (like 1 10 100 1000
> 10000, of the original values). I have seen a solution for the first
> part of the problem: Cox showed a command to get the original scale on
> the xaxis after logging a variable. Nevertheless, I don't know how to
> have the  1 10 100 1000 10000 order.
>
> Plus, I am still struggling to find a solution for the Prentice 1974
> generalized gamma approach. It would be so nice for someone to present
> a possible solution!
>
> Thanks in advance!
> Francisco Augusto
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index