R/Wright.R

Defines functions Wright

Documented in Wright

Wright <-
function(y,kvec)
{
    y <- as.matrix(y)
    n <- nrow(y)
    W_mat <- matrix(NA, nrow=length(kvec), ncol=3)
    for (i in 1:length(kvec))
    {
    k <- kvec[i]
    W <- Wright_stat(y,k)
    W_mat[i,] <- cbind(W$WR1,W$WR2,W$WS1)
    }

    VR <- W_mat
    rownames(VR) <- paste("k=",kvec,sep="")
    colnames(VR) <- c("R1","R2","S1")
    return(list(Stats=VR))
}

Try the vrtest package in your browser

Any scripts or data that you put into this service are public.

vrtest documentation built on Aug. 31, 2023, 9:08 a.m.