We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
add a test that compares manual correlation calculation with results of draw_var_corr
draw_var_corr
library(rstanarm) m4 <- stan_glmer( Reaction ~ Days + (Days | Subject), data = lme4::sleepstudy, prior_covariance = decov(1, 1, 1), prior = normal(0, 1), prior_PD = TRUE, chains = 1) me <- tristan::draw_var_corr(m4) df <- as.data.frame(m4) cors <- df$`Sigma[Subject:Days,(Intercept)]` / (sqrt(df$`Sigma[Subject:Days,Days]`) * sqrt(df$`Sigma[Subject:(Intercept),(Intercept)]`)) plot(density(cors, adjust = .2)) hist(cors) cors2 <- me %>% filter(!is.na(var2)) %>% pull(sdcor) plot(density(cors2, adjust = .2)) hist(cors2)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
add a test that compares manual correlation calculation with results of
draw_var_corr
The text was updated successfully, but these errors were encountered: