You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some link functions that are valid for glm, glmer, etc. are not supported by their stan_ counterparts
Description:
?family says for its link argument that
a specification for the model link function. This can be a
name/expression, a literal character string, a length-
character vector, or an object of class ‘"link-glm"’ (such as
generated by ‘make.link’) provided it is not specified via
one of the standard names given next ...
The rstanarm package only implements "standard" link functions for a particular family, such as "identity", "log", and "inverse" for gaussian. But gaussian(link = "cloglog") is valid with glm, glmer, etc. because gaussian calls make.link("cloglog") which is among its valid inputs:
Summary:
Some link functions that are valid for
glm
,glmer
, etc. are not supported by theirstan_
counterpartsDescription:
?family
says for itslink
argument thatThe rstanarm package only implements "standard" link functions for a particular family, such as
"identity"
,"log"
, and"inverse"
forgaussian
. Butgaussian(link = "cloglog")
is valid withglm
,glmer
, etc. becausegaussian
callsmake.link("cloglog")
which is among its valid inputs:Reproducible Steps:
rstanarm::stan_glm(..., family = gaussian(link = "cloglog"))
# Terry Therneau pointed this out to meRStanARM Version:
All of them have this issue, but I am using 2.26.x
R Version:
R 4.4 at least but probably all of them
Operating System:
Does not matter
The text was updated successfully, but these errors were encountered: