inst/unitTests/runit.corcoxph.R

library("RUnit")
library("copcor")

test.random <- function() {

RNGkind("Mersenne-Twister", "Inversion")
tolerance=1e-6
#if(file.exists("D:/gDrive/3software/_checkReproducibility")) tolerance=1e-6

set.seed(1)
#dat=rbigamma(n=500, shape.1=2, shape.2=2, rate.1=1, rate.2=2, rho=0.5) 
#checkEqualsNumeric(cor(dat[,1], dat[,2]), 0.4805187, tol=tolerance)





}

Try the copcor package in your browser

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

copcor documentation built on Sept. 12, 2024, 7:40 a.m.