squidgroup / squidSim

squidSim in tool for simulating data from multi-level/hierarchical models, including genetic, phylogenetic, temporal and spatial effects
Other
6 stars 0 forks source link

allow zero variance? or NA variance #20

Closed joelpick closed 2 years ago

joelpick commented 2 years ago

MASS::mvrnorm allows 0s. MCMCglmm::rbv does not, but would be easy enough to write in a wrapper function that did it

joelpick commented 2 years ago

MASS::mvrnorm implemented (d9adb21), so will work without cov_str. Made wrapper function for MCMCglmm::rbv (rbv0), so need to implement that for pedigree and phylogeny.

joelpick commented 2 years ago

made wrapper for mvnfast::rmvn that allows 0s (0cf4fc6)