[EMAIL PROTECTED] 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

______________________________________________
R-help@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.

Reply via email to