Re: [R] 'skewing' a normal random variable

From: TEMPL Matthias <Matthias.Templ_at_statistik.gv.at>
Date: Mon 04 Apr 2005 - 14:59:23 EST


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@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] Im Auftrag von
> Ashraf Chaudhary
> Gesendet: Montag, 04. April 2005 01:06
> An: r-help@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@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
>



R-help@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 Received on Mon Apr 04 15:06:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:01 EST