[R] Calculation of Central Moments

William Revelle lists at revelle.net
Tue Dec 1 16:13:14 CET 2009


At 9:09 AM -0500 12/1/09, Jorge Ivan Velez wrote:
>Hi Maithili,
>
>Here is a suugestion:
>
>R> install.packages('fBasics')
>R> require(fBasics)
>R> set.seed(123)
>R> x <- rnorm(100)
>R> basicStats(x)
>
>HTH,
>Jorge
>

or, try the describe function in psych.
However, neither fBasics nor describe will report the mode.






>On Tue, Dec 1, 2009 at 2:08 AM, Maithili Shiva <> wrote:
>
>>  Dear R helpers
>>
>>  If for a given data, I need to calculate Mean, Standard Deviation, Mode,
>>  Median, Skewness, Kurtosis, is there any package in R, which will calculate
>>  these moments?
>>
>>  Individually I can calculate these, but if there is any function which will
>>  calculate these at a stretch, please let me know.
>>
>>  Maithili
>>
>>
>>
>>       The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
>>         [[alternative HTML version deleted]]
>>
>>  ______________________________________________
>>  R-help at r-project.org mailing list
>>  https://stat.ethz.ch/mailman/listinfo/r-help
>>  PLEASE do read the posting guide
>>  http://www.R-project.org/posting-guide.html
>>  and provide commented, minimal, self-contained, reproducible code.
>>
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.


-- 
William Revelle		http://personality-project.org/revelle.html
Professor			http://personality-project.org/personality.html
Department of Psychology             http://www.wcas.northwestern.edu/psych/
Northwestern University	http://www.northwestern.edu/
Use R for psychology                       http://personality-project.org/r
It is 5 minutes to midnight	http://www.thebulletin.org




More information about the R-help mailing list