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

Fix issue #268 #287

Merged
merged 10 commits into from
Mar 25, 2022
Merged

Fix issue #268 #287

merged 10 commits into from
Mar 25, 2022

Conversation

fweber144
Copy link
Collaborator

@fweber144 fweber144 commented Mar 11, 2022

This fixes issue #268 for GLMMs by drawing the random effects for new group levels from a (multivariate) Gaussian distribution.

Note that by this PR, issue #268 is not fixed for GAMMs yet.

Copyright/license:

The code for the new repair_re.merMod() is inspired by (i.e., it uses code snippets from) lme4:::predict.merMod(). I included a corresponding statement right before repair_re.merMod() (these lines). Since lme4 is licensed under GPL (>=2) and projpred is licensed under GPL-3, the inclusion of code snippets from lme4 should be ok. (For a proof that GPL (>=2) and GPL-3 are compatible, see here and the table here.) However, some remaining questions I have are:

  1. Do you want me to add a separate LICENSE file where we explain which code snippets from lme4 are used (and change the "License" field in DESCRIPTION correspondingly to GPL-3 | file LICENSE)? This is what is done in package shiny, for example. (But I guess the external components in shiny are larger than the code snippets used here.)
  2. At that occasion (of enumeration point 1), do you also want me to add a LICENSE.md file containing the full GPL-3 license text (see here)?
  3. @bbolker (and all other lme4 authors): Are these lines a sufficient copyright/licensing approach for you and the other lme4 authors? Or do you prefer a copyright-holder entry in the "Authors@R" field of the DESCRIPTION file? If you would like such a copyright-holder entry in the "Authors@R" field, which persons should it include? Or simply "The LME4 Authors"?

@avehtari
Copy link
Collaborator

I think your suggestions make sense

@bbolker
Copy link

bbolker commented Mar 15, 2022

I think what you've done here is fine, thanks for asking (I'll forward this to other lme4-authors in case they have strong opinions, but I'm pretty sure they'll be fine with this too).

@fweber144
Copy link
Collaborator Author

I think what you've done here is fine, thanks for asking (I'll forward this to other lme4-authors in case they have strong opinions, but I'm pretty sure they'll be fine with this too).

Great, thanks.

@mmaechler
Copy link

I'm also happy with your attribution to us for the code reused from lme4:::predict.merMod().
Best,
Martin Mächler (co-author of lme4)

fweber144 added a commit to fweber144/projpred that referenced this pull request Mar 16, 2022
files `LICENSE` and `LICENSE.md`.

File `LICENSE` contains some detailed information about external components
(including their full license texts). The GPL-2 license text was downloaded from
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.

File `LICENSE.md` contains the full GPL-3 license text (as recommended at
<https://r-pkgs.org/license.html#key-files>) and was downloaded from
<https://www.gnu.org/licenses/gpl.md>.
files `LICENSE` and `LICENSE.md`.

File `LICENSE` contains some detailed information about external components
(including their full license texts). The GPL-2 license text was downloaded from
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.

File `LICENSE.md` contains the full GPL-3 license text (as recommended at
<https://r-pkgs.org/license.html#key-files>) and was downloaded from
<https://www.gnu.org/licenses/gpl.md>.
@fweber144
Copy link
Collaborator Author

@avehtari: I just pushed the proposed changes from enumeration points 1 and 2 (commit 2d1288f). If you are ok with these changes, this PR can be merged.

@fweber144 fweber144 mentioned this pull request Mar 17, 2022
@AlejandroCatalina AlejandroCatalina merged commit 17c05f7 into stan-dev:develop Mar 25, 2022
@fweber144 fweber144 deleted the issue268_fix branch March 26, 2022 11:58
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.

None yet

5 participants