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 for issue with link not adding intercept for linear models #285

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/z_link-map-quap.r
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function( fit , data , n=1000 , post , refresh=0 , replace=list() , flatten=TRUE
# hacky solution -- find density function and insert whatever expression in typical link spot
flik <- as.character(fit@formula[[1]][[3]][[1]])
# mu for Gaussian
if ( flik=="dnorm" ) lm <- as.character( fit@formula[[1]][[3]][[2]] )
if ( flik=="dnorm" ) lm <- deparse( fit@formula[[1]][[3]][[2]] )
# p for binomial -- assume in third spot, after size
if ( flik=="dbinom" ) lm <- as.character( fit@formula[[1]][[3]][[3]] )
# lambda for poisson
Expand Down