On 11-02-07 19:21, Sascha Vieweg wrote:
Hello, knowing that some index y, with y(341)=2, SE=3, is t-distributed, I
(think I) can find an appropriate (left/one-sided) p-value with
R: y <- 2
R: yse <- 3
R: (p <- 1-pt(y/yse, df=341))
Now, some simulation resulted in the non-parametric distribution, Y, of my
index, y:
R: Y <- rnorm(21277)
How can I find the p-value of y then? Simply counting? Thanks, *S*
For the files: function ecdf() was the function I was looking for.
q.fun <- function(dist, val){
fn <- ecdf(dist)
return(fn(val))
}
q.fun(Y, y)
______________________________________________
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.