[R] Simulating the p-value of a test statistic
Duncan Murdoch
murdoch at stats.uwo.ca
Sun May 25 03:23:33 CEST 2008
ampad1cb at cmich.edu wrote:
> Dear Friends,
>
>
> I want to know if any one could give me help on this.
> Suppose you want to simulate the p-value of a test statistic
> but you do not know how the distribution of the test
> statistic, how can one simulate the p-value.
>
> It will be helpful to get an example code in R on this'
>
If you want R code, you need to give more background. Here's R code to
simulate the p-value under the null:
p <- runif(1000)
Not very interesting. It would be more interesting if we knew the context.
Duncan Murdoch
More information about the R-help
mailing list