rmcelreath / rethinking

Statistical Rethinking course and book package
2.14k stars 603 forks source link

coeftab and precis functions returning hundreds of parameter estimates #348

Closed caadams closed 2 years ago

caadams commented 2 years ago

When I use coeftab() on a model object from map2stan, the function returns all of the estimated parameters - including the p or mu values for each data point. For example, coeftab(m10.4) returns a[1] through a[7], bp, bpC, and p[1] through p[504]. This quantity of coefficients makes the plot using plot(coeftab(m10.4)) impossible to read.

precis(m10.4, depth = 2) also returns all of the estimates for p[1] - p[504].

Is there any way to control which parameters are returned for the coeftab() and precis()?

rmcelreath commented 2 years ago

precis provides the "pars" argument for selecting variables.

If you are still using map2stan instead of ulam, you will want to switch soon, because map2stan is no longer maintained and eventually it will no longer produce functional Stan code.