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

Disallow offsets for datafits #351

Merged
merged 6 commits into from
Sep 19, 2022
Merged

Conversation

fweber144
Copy link
Collaborator

@fweber144 fweber144 commented Sep 19, 2022

Following #186 (comment), this PR disallows offsets for datafits because the submodel fitting does not take offsets into account (but <refmodel>$mu contains the observed response values which inevitably "include" the offsets, i.e., we cannot get (hypothetical) observed response values excluding offsets if offsets are actually present).

take offsets into account (but `<refmodel>$mu` contains the observed response
values), see the comment at
<stan-dev#186 (comment)>.
offsets-related code in the test "L1-projection with data reference gives the same results as Lasso from glmnet.".

This reverts commit 7cb21617f5a55f74db39590e01f5da45cc1ed831.
@fweber144 fweber144 merged commit 0c44b51 into stan-dev:master Sep 19, 2022
@fweber144 fweber144 deleted the datafit_offs branch September 19, 2022 20:20
@fweber144
Copy link
Collaborator Author

Note that strangely, the test "L1-projection with data reference gives the same results as Lasso from glmnet." also succeeded before the changes made by commit 422ffad. This might have been due to very relaxed expectations.

@fweber144 fweber144 mentioned this pull request Sep 20, 2022
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

1 participant