mercredi 4 mai 2022

Sampling from a custom RV in R

I have a custom-made RV called X<-function(par) which returns a d-dimensional vector. Now I want to draw n samples and have them stored in a d,n-dimensional matrix. Is there a way to do this without using a loop?

Thank you!




Aucun commentaire:

Enregistrer un commentaire