## bivariate example
data(unicef)
Hpi(unicef, nstage=2, pilot="samse", pre="sphere")
Hpi(unicef, nstage=2, pilot="samse", pre="sphere", binned=TRUE)
## 4-variate example
x <- rmvnorm.mixt(n=1000, mus=rep(0,4), diag(4))
Hpi.diag(x, nstage=1, pilot="samse", pre="scale")
Hpi.diag(x, nstage=1, pilot="samse", pre="scale", binned=TRUE)
Run the code above in your browser using DataLab