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

Function to estimate the expected (co)variances #2

Closed YimenAraya-Ajoy closed 2 years ago

YimenAraya-Ajoy commented 3 years ago

I think it will be nice to have a function that summarizes the expected patterns of variance and covariance at the different levels due to known and unknown sources. As well as the proportion of (co)variance explained by each process. This is something that is implemented in the squidApp

joelpick commented 3 years ago

This is a great idea, and I have thought about this a lot. I think it becomes prohibitively difficult when we allow people to specify their own formulas. To do this I think we have to be able to anticipate what kinds of model formulations people are going to be able to simulate. We could implement this quite easily when a formula isn't specified (things are just added up and assumed to be uncorrelated), and definately in the squidApp implementation

joelpick commented 2 years ago

implemented in b7ba826 with the new expected_variance() function. Is this what you had in mind @YimenAraya-Ajoy ?

joelpick commented 2 years ago

need to make it work with multivariate