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

Replicating README.md example #12

Closed
michafi opened this issue Feb 10, 2021 · 3 comments
Closed

Replicating README.md example #12

michafi opened this issue Feb 10, 2021 · 3 comments

Comments

@michafi
Copy link

michafi commented Feb 10, 2021

Hello,

I've been problems replicating your example. The output looks different:

> (r2nsj = r2beta(mer1, method = 'nsj', partial = TRUE))

gives me:

              Effect   Rsq upper.CL lower.CL
1              Model 0.410    0.551    0.305
4           bs(age)3 0.231    0.369    0.111
5          SexFemale 0.032    0.126    0.000
3           bs(age)2 0.024    0.111    0.000
8 bs(age)3:SexFemale 0.016    0.095    0.000
7 bs(age)2:SexFemale 0.002    0.056    0.000
6 bs(age)1:SexFemale 0.001    0.051    0.000
2           bs(age)1 0.000    0.046    0.000

but not the desired:

#>        Effect   Rsq upper.CL lower.CL
#> 1       Model 0.410    0.551    0.305
#> 2     bs(age) 0.263    0.409    0.149
#> 3         Sex 0.032    0.126    0.000
#> 4 bs(age):Sex 0.024    0.134    0.005

I think this might be related to the R version (4.0.3) I'm using right now, because it used to work before updating.

Let me know if you need any further information!

Thanks in advance for your help!

Best,
Micha

@bcjaeger
Copy link
Owner

Hello! Thank you for your question. I think you will get the same results as the readme if you download the developer version of the r2glmm package.

@bcjaeger
Copy link
Owner

i.e., try running remotes::install_github('bcjaeger/r2glmm') in a fresh R session.

@michafi
Copy link
Author

michafi commented Feb 10, 2021 via email

@michafi michafi closed this as completed Feb 10, 2021
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

No branches or pull requests

2 participants