So I have a smaller sample of the data now but when I run the get_stancode() function I keep getting this error message:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘get_stancode’ for signature ‘"stanreg"’
My guess is this is because the model is a stanreg object rather than a stanfit object but I can't figure out how to make a stanfit object rather than stanreg when using rstanarm
Heres the code I used:
model100 <- stan_lm(difi_paro ~ dgOffer, data=data100, prior = NULL)
get_stancode(model100)