Hi All; The following question is directed more to statisticians on the list. Suppose I have a normal random variable. Is there a transformation that I can apply so that the new variable is slightly positively skewed. I greatly appreciate your help. Ashraf
Ashraf Chaudhary wrote:>Hi All; >The following question is directed more to statisticians on the list. >Suppose I have a normal random variable. Is there a transformation that I >can apply so that the new variable is slightly positively skewed. >I greatly appreciate your help. >Ashraf > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > > > >look at the sn package on CRAN --- skew normal distributions, m and the web page of its author. -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus.
I think the box.cox function in package car can do this. x <- rnorm(1000) hist(x) library(car) hist(box.cox(x, p=0.5)) Play around with different powers. Best, Matthias> -----Urspr?ngliche Nachricht----- > Von: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] Im Auftrag von > Ashraf Chaudhary > Gesendet: Montag, 04. April 2005 01:06 > An: r-help at stat.math.ethz.ch > Betreff: [R] 'skewing' a normal random variable > > > Hi All; > The following question is directed more to statisticians on > the list. Suppose I have a normal random variable. Is there a > transformation that I can apply so that the new variable is > slightly positively skewed. > I greatly appreciate your help. > Ashraf > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read > the posting guide! http://www.R-project.org/posting-guide.html >