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

StudCIaddition #23

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Conversation

IlmariTamminen
Copy link
Contributor

Here is the first part of the studentized-CI implementation. The bootstrap.merMod has an option to acquire the needed variances. Try using varest argument with “no” (default), “analyticalf” (obtains variances from vcov matrix), or “nestboot” (not implemented yet, only placeholder). The “analyticalf” works with .f() returning named nums or dataframes. The variances appear in the replicates of the result. The calculation of the confidence intervals themselves are not included yet.

@aloy
Copy link
Owner

aloy commented Jul 19, 2022

Sorry that this took me so long to get to, summer has been far busier than anticipated. It looks like you are thinking about this approach only for the standard coefficient and variance component estimates. Is that correct?

@IlmariTamminen
Copy link
Contributor Author

IlmariTamminen commented Jul 20, 2022

Hi @aloy,

No problem, I have also been busy with other tasks.

Yes, with extra place holder for nested bootsrapping for any other statistic as well.

To my understanding, the calculation of the studentized CIs require the statistic of interest, its variance, and the distributions of the replicates and their variances. The argument "analyticalf" can be used with the basic .f = fixef. I planned that when later the confint() is called, the user defines which fixed effect and variance (and the replication distributions) are used for the studentized CI.

As an extra feature, I prepared the option also for the nested bootstrapping ("nestboot") that can be used to estimate the variance for any custom statistics, not just for fixef.

@IlmariTamminen IlmariTamminen marked this pull request as draft October 17, 2022 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants