Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contrasts for imbalanced and partially crossed designs #7

Open
tavareshugo opened this issue Aug 11, 2022 · 1 comment
Open

Contrasts for imbalanced and partially crossed designs #7

tavareshugo opened this issue Aug 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tavareshugo
Copy link
Owner

I wonder if the strategy I'm using in the tutorial is actually suitable for imbalanced designs. For example, let's say I had 3 replicates in one batch and 6 replicates in a another batch and am creating a coefficient vector for two treatments. Why should estimates for samples in batch 2 have twice the weight as those from batch 1? In principle the SE estimates already implicitly capture differences in the uncertainty of coefficient estimates in each batch.

There might be situations where it's reasonable to assume different weights, but maybe in most cases we actually want to keep equal weights. Investigate this with simulations.

I've got a getNumericCoef() function in this gist, which I think does the trick.

@tavareshugo tavareshugo changed the title Contrasts for imbalanced designs Contrasts for imbalanced and partially crossed designs Feb 28, 2024
@tavareshugo
Copy link
Owner Author

I'm not entirely sure of the argument above regarding imbalanced designs.

Perhaps more seriously, I'm not confident the approach in the tutorial holds for partially crossed designs - in fact, it may give wrong coefficient weights! See #9 for an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant