-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Updates for Regression and Other Stories #432
Merged
Merged
Changes from 5 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8d43c7f
prior scale for intercept now 2.5 instead of 10
jgabry 8bfe1d2
change autoscale usage
jgabry 0973436
add default_prior_intercept, default_prior_coef
jgabry dd800ab
Update priors.R
jgabry 76a3806
Update NAMESPACE
jgabry fa19d13
introduce posterior_epred
bgoodri 7add53f
predict.R: remove error message for RAOS
bgoodri 90d49bc
add (currently unused) family argument to default_prior_*
jgabry b469f1e
update posterior_linpred/epred doc
jgabry 92d10a6
import posterior_epred generic from rstantools
jgabry fef4102
use posterior_epred instead of posterior_linpred in *_R2() functions
jgabry dfd7d33
use posterior_epred instead of linpred with transform
jgabry 6ebfa90
logit and invlogit convenience functions
jgabry cc050a0
Update DESCRIPTION
jgabry 64126fc
Merge branch 'master' into new-default-prior
jgabry c5b67a4
Update posterior_linpred.R
jgabry f97753c
always divide by sd(x) (unless x is constant)
jgabry eb5cbd4
Update priors.Rmd
jgabry 4c3b8e2
Merge branch 'new-default-prior' of https://github.com/stan-dev/rstan…
jgabry dcf587a
more doc updates after updating default priors
jgabry 5a43cad
Add note at top of priors vignette about changes
jgabry 27e9988
remove autoscale=FALSE from vignettes
jgabry efc6d16
Update zzz.R
jgabry 781a131
mention version number in vignette
jgabry 3a412a9
averages -> expectations in posterior_epred doc
jgabry 8708832
update message and doc for posterior_linpred(transform=TRUE)
jgabry 5e8f452
Merge branch 'master' into new-default-prior
bgoodri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
default_prior_*
should take afamily
argument and thenstan_glm
, etc. should default todefault_prior(family)
. This will give us more flexibility to change things in the future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. What about for functions like
stan_lmer()
,stan_glm.nb()
,stan_glmer.nb()
, where there's nofamily
argument?That is, for
stan_glmer()
we can havebut for
stan_lmer()
and others should we just fill in the family like this?Or some other option?