Displaying 1 result from an estimated 1 matches for "pvaluessort".
2010 Jun 23
2
question about a program
...w: program with two
functions].
This work fine. However, However I want to put them into one function
for the convenience
of later use [see below: program with one function]. Some how the big
function works extremely
slow. For example I chose
m <- 10
rho <- 0.1
k <- 2
alpha <- 0.05
pvaluessort <- sort(1-pnorm(rnorm(10))
Is there anything that I did wrong?
Thank you!
Hannah
######Program with two functions############
## first step
library(mvtnorm)
cc_f <- function(m, rho, k, alpha) {
cc_z <- numeric(m)
var <- matrix(c(1,rho,rho,1), nrow=2, ncol=2, byr...