Re: [R] p-value

From: Felipe Carrillo <mazatlanmexico_at_yahoo.com>
Date: Thu, 12 Jun 2008 07:17:04 -0700 (PDT)

 Not sure if this is what you are looking for but you can get  the p-value with something like this:
 # Create a vector
 mydata<-
 c(132968364, 135945080, 156539568, 157817896, 162399496, 168344072, 173146584, 176302744, 182878168, 183946152, 185068720, 190791232, 84317660, 93708872, 106810172, 126800004, 148519056, 150945112, 155771432, 181069984, 87104384)    plot(density(mydata))
   shapiro.test(mydata)  

 From: mohamed nur anisah
> > say I have this sample of data ( attach with). What
> > i'm going to do is to test whether this data is
> > uniformly distributed or not by finding the p-value.
> > I've tried using the punif command but it gave me
> the
> > value of 1 of all the data. Any suggestion on R
> command to
> > find the p-value??Thanks in advance!!
> >
> > Cheers,
> > Anisah132968364
> > 135945080
> > 156539568
> > 157817896
> > 162399496
> > 168344072
> > 173146584
> > 176302744
> > 182878168
> > 183946152
> > 185068720
> > 190791232
> > 84317660
> > 93708872
> > 106810172
> > 126800004
> > 148519056
> > 150945112
> > 155771432
> > 181069984
> > 87104384______________________________________________



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. Received on Thu 12 Jun 2008 - 14:26:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jun 2008 - 14:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive