Using rWishart() provides a small performance gain for newer versions. Conditioning on the R version at the time of function creation rather than inside the function avoids checking the version on each function call.
Thanks! It is good to know there is now a built-in Wishart simulator.
I will take a look once my classes are over - I want to make sure
the conditional definition of rwish.R plays nice with R CMD CHECK.
Using rWishart() provides a small performance gain for newer versions. Conditioning on the R version at the time of function creation rather than inside the function avoids checking the version on each function call.