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

Covariance between know predictors and simulated predictors #15

Open hallegue opened 2 years ago

hallegue commented 2 years ago

When simulating predictors, squidSim allows to specify the covariance matrix between all these predictors. squidSim also allows to input the user data. However, the covariance between simulated and know predictors is not possible. This could be a very useful feature.

joelpick commented 2 years ago

This can be done through the model argument, as you can make a new variable that is dependent on a simulated or known predictor. This is a bit cumbersome, but I don't think it would be easy to implement otherwise