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

noSpecials for propto #2

Open
mmcgillycuddy opened this issue Jul 19, 2024 · 4 comments
Open

noSpecials for propto #2

mmcgillycuddy opened this issue Jul 19, 2024 · 4 comments

Comments

@mmcgillycuddy
Copy link

mmcgillycuddy commented Jul 19, 2024

Hi Ben,

I'm not sure if this is the problem, but I am getting a problem with the formula in glmmTMB. Let me know if this should be in the glmmTMB issues. I think when I have a propto structure in the formula it doesn't get rid of propto with the noSpecials function.

> noSpecials(sub_specials(y ~ x + homdiag(1 + x | spp)), delete = F)
y ~ x + (1 + x + spp)
> noSpecials(sub_specials(y ~ x + propto(1 + x | spp)), delete = F)
y ~ x + propto(1 + x + spp)
@bbolker
Copy link
Owner

bbolker commented Jul 19, 2024

Yes, the problem is here; there's a hard-coded list of specials. I had already flagged this as a potential issue; have to think about how to pass the information between packages (without having to update in both places), and without some incredibly tedious process of passing information down through a stack of function calls ...

I think we should be able to do this by passing specials = c(names(.valid_covstruct), "s") as an argument ...

@mmcgillycuddy
Copy link
Author

Yes, that worked. Thanks Ben.

@bbolker
Copy link
Owner

bbolker commented Jul 25, 2024

Arguably findReTrmClasses() shouldn't use a hard-coded list at all ...? Use an empty list by default and throw a warning/error if user doesn't provide anything?

@mebrooks
Copy link

mebrooks commented Jul 31, 2024

Sorry for the delay. I merged the pull request in glmmTMB (mentioned above) that makes it possible to pass known covstructs to reformulas.

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

3 participants