https://github.com/cran/mvtBinaryEP
Raw File
Tip revision: e03023db232593f436717e7be27d1c52d9865644 authored by Kunthel By on 18 February 2009, 00:00 UTC
version 1.0
Tip revision: e03023d
rho.to.Y.R
`rho.to.Y` <-
function(mu, rootS, p, K=1, seed=seed)
{
    z <- ranMvnXch(rho=rootS, n=p, nRep=K, seed=seed)
    y <- ifelse( z <= qnorm(mu), 1, 0 )

    return(y)
}

back to top