R/simulate.r

Defines functions rHAC

Documented in rHAC

# simulate.r #############################################################################################################
# FUNCTION:       DESCRIPTION:     
#  rHAC			  Returns simulated vectors from general HAC.
##########################################################################################################################

rHAC = function(n, hac){
    Sample = rnacopula(n, hac2nacopula(hac))
    colnames(Sample) = .get.leaves(hac$tree)
    Sample
}

Try the HAC package in your browser

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

HAC documentation built on March 18, 2022, 6:38 p.m.