Displaying 20 results from an estimated 1000 matches similar to: "about comparison of KURTOSIS in package: moments and fBasics"
2006 Sep 08
1
Computing skewness and kurtosis with the moments package
Hi,
I'm a newcomer to R, having previously used SPSS. One problem I have
run into is computing kurtosis. A test dataset is here:
http://www.whinlatter.ukfsn.org/2401.dat
> library(moments)
> data <- read.table("2401.dat", header=T)
> attach(data)
> loglen <- log10(Length)
With SPSS, I get
Skewness -0.320
Kurtosis -1.138
With R:
> skewness(loglen)
[1]
2004 Oct 27
2
Skewness and Kurtosis
Hi,
in which R-package I could find skewness and kurtosis
measures for a distribution?
I built some functions:
gamma1<-function(x)
{
m=mean(x)
n=length(x)
s=sqrt(var(x))
m3=sum((x-m)^3)/n
g1=m3/(s^3)
return(g1)
}
skewness<-function(x)
{
m=mean(x)
me=median(x)
s=sqrt(var(x))
sk=(m-me)/s
return(sk)
}
bowley<-function(x)
{
q<-as.vector(quantile(x,prob=c(.25,.50,.75)))
2009 Dec 01
2
Calculation of Central Moments
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.
2004 Feb 09
2
moments, skewness, kurtosis
I checked the help and the mailing list archives, but I can
find no mention of a routine that calculates higher
moments like skewness and kurtosis. Of course, these
are easy enough to write myself, but I was thinking
that they MUST be in here. Am I wrong?
Thanks.
-Frank
2008 Sep 23
3
Generating series of distributions with the same skewness and different kurtosis or with same kurtosis and different skewness?
Dear R users,
I hope to explain the concepts of skewness and kurtosis by generating
series of distributions with same skewness and different kurtosis or with
same kurtosis and different skewness, but it seems that i cannot find the
right functions.
I have searched the mailing list, but no answers were found.
Is it possible to do that in R? Which function could be used?
Thanks a lot.
--
2005 May 23
3
skewness and kurtosis in e1071 correct?
I wonder whether the functions for skewness and kurtosis in the e1071
package are based on correct formulas.
The functions in the package e1071 are:
# --------------------------------------------
skewness <- function (x, na.rm = FALSE)
{
if (na.rm)
x <- x[!is.na(x)]
sum((x - mean(x))^3)/(length(x) * sd(x)^3)
}
# --------------------------------------------
and
#
2011 Oct 25
1
alternative option in skewness and kurtosis tests?
I have a question about the D'Agostino skewness test and the Anscombe-Glynn
kurtosis test.
agostino.test(x, alternative = c("two.sided", "less", "greater"))
anscombe.test(x, alternative = c("two.sided", "less", "greater"))
The option "alternative" in those two functions seems to be the null
hypothesis. In the output, the
2008 Nov 06
4
mean computation for external data
I have an external data (.txt) for
annual peak flood. The first column is the year, second column is the
observation date, and the last is the observed discharge. My task is to
calculate the mean, skewness and kurtosis of the said data. I was advised to use
read.table() to read the entire data. Please help me on how to perform the
required computation. I am obviously a new user of this statistical
2009 Dec 23
2
Mean, median and other moments
Hi!
Suppose I have a dataset as follows
pd = c(10,7,10,11,7,11,7,6,8,3,12,7,7,10,10)
I wish to calculate the mean, standard deviation, median, skewness and kurtosis i.e. regular standard statistical measures.
average = mean(pd)
stdev = sd(pd)
median = median(pd)
skew = skewness(pd)
kurt = kurtosis(pd)
Q. No (1)
How do I get these at a stretch using some R package? I came across
1999 Jul 28
1
skewness, kurtosis
Dear R-Users and Developpers,
Currently R does not include functions to compute the skewness and
kurtosis. I programmed it myself in the following way, but probably
*real* programmers/statisticians can do that better:
mykurtosis <- function(x) {
m4 <- mean((x-mean(x))^4)
kurt <- m4/(sd(x)^4)-3
kurt
}
myskewness <- function(x) {
m3 <- mean((x-mean(x))^3)
skew <-
2003 Nov 08
1
notation for skewness and kurtosis
Hello everybody,
this is a bit off topic, so maybe you can just reply to me personally...
What is the typical notation for 'skewness', 'kurtosis' and maybe 'excess
kurtosis'?
Thank you,
Martina
--------------------------------------------------------------------------
Department of Statistics Office Phone: (614) 292-1567
1958 Neil Avenue, 304E Cockins Hall
2017 Nov 01
0
"prob" package alternative
> On Nov 1, 2017, at 12:51 PM, Tiby Kantrowitz <tlkantro at gmail.com> wrote:
>
> The prob package has been archived because it depends upon some other
> packages which have issues.
>
> However, such projects as Introduction to Probability and Statistics in R
> depend upon it for learning. There are a few other resources that also use
> it.
>
> Does anyone
2011 Aug 06
1
significance of differences in skew and kurtosis between two groups
Dear R-users,
I am comparing differences in variance, skew, and kurtosis between two groups.
For variance the comparison is easy: just
var.test(group1, group2)
I am using agostino.test() for skew, and anscombe.test() for kurtosis. However, I can't find an equivalent of the F.test or Mood.test for comparing kurtosis or skewness between two samples.
Would the test just be a 1 df test on
2017 Nov 02
2
"prob" package alternative
The issue is fAsianOptions. Is there a version that works with the latest
version of R? If not, which version of it works with which version of R and
where can it be found? I tried several at the archive already.
Alternatively, is there another package that behaves similarly to prob?
On Wed, Nov 1, 2017 at 6:17 PM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
> > On Nov
2001 Dec 10
2
distributions w. skewness & kurtosis
Is there some reasonable way to generate random data from a
distribution that has some degree of skewness and/or kurtosis, but
would otherwise be normal?
thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: greiff.vcf
Type: text/x-vcard
Size: 398 bytes
Desc: Card for Warren R. Greiff
Url :
2001 Sep 28
1
Generate rand. data with zero skewness and some kurtosis
Dear all,
Right now, I'm doing research about outlier in statistical data
(univariate and multivariate) and I want to simulate its behavior. My
problem is :
How to generate random data from distribution with zero skewness and
some kurtosis values in R ?
A. Kudus
=====================
Dept. of Statistics
Bandung Islamic University
I n d o n e s i a
==========================
2017 Nov 02
0
"prob" package alternative
> On Nov 2, 2017, at 11:15 AM, Tiby Kantrowitz <tlkantro at gmail.com> wrote:
>
> The issue is fAsianOptions. Is there a version that works with the latest version of R? If not, which version of it works with which version of R and where can it be found? I tried several at the archive already.
sessionInfo()
R version 3.4.2 Patched (2017-10-04 r73465)
Platform:
2017 Nov 02
2
"prob" package alternative
Yes. That's the version I've been discussing that has non-zero exit status.
That situation is why CRAN retired the prob package. It's possible you
installed that library earlier in development and it's been "carried"
along. It no longer installs, now.
The problems with all of this seem to have started this month according to
the conversations. However, no one has
2004 Nov 17
1
R: log-normal distribution and shapiro test
Hi,
from what you're writing:
"The logaritmic transformation
"shapiro.test(log10(y))" says: W=0.9773, p-value=
2.512e-05." it seems the log-values are not
distributed normally and so original data are not
distributed like a log-normal: the p-value is
extremally small!
Other tests for normality are available in package:
nortest
compare the log-transformation of your ecdf
2008 Sep 30
0
error in fBasics package
When I try to load "fBasics" package, I get following error/warning :
> library(fBasics)
Loading required package: fImport
Loading required package: fSeries
Loading required package: fBasics
Loading required package: fImport
Loading required package: fSeries
Loading required package: fBasics
Loading required package: fImport
Loading required package: fSeries
Loading required package: