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
I have encountered a potential bug in the auto_prior() function handling of categorical variables that contain spaces
For example when I use auto_prior(data) and the data contains a factor variable with spaces in the individual categories (e.g. outcome 1 instead of outcome_1) priors are assigned but when you plug in the priors into brm() I get the following error: The following priors do not correspond to any model parameter: outcome 2 ~ normal(0, 1) outcome 3 ~ normal(0, 1) Function 'get_prior' might be helpful to you.
The reference category is not mentioned. When I change the coding of the variable to outcome_2 by replacing the space everything works as expected.
The text was updated successfully, but these errors were encountered:
I have encountered a potential bug in the
auto_prior()
function handling of categorical variables that contain spacesFor example when I use
auto_prior(data)
and the data contains a factor variable with spaces in the individual categories (e.g.outcome 1
instead ofoutcome_1
) priors are assigned but when you plug in the priors intobrm()
I get the following error:The following priors do not correspond to any model parameter: outcome 2 ~ normal(0, 1) outcome 3 ~ normal(0, 1) Function 'get_prior' might be helpful to you.
The reference category is not mentioned. When I change the coding of the variable to
outcome_2
by replacing the space everything works as expected.The text was updated successfully, but these errors were encountered: