home.social

#statsodon — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #statsodon, aggregated by home.social.

  1. also thanks to @gaborcsardi @maelle for rhub v2, which makes it easy to configure GitHub Actions for crossplatform builds on Linux, macOS and Windows

    CRAN.R-project.org/package=rhu

    #rstats #statsodon #github #jira

  2. I mostly followed the 2nd edition of "R Packages" by @hadleywickham @jennybryan with a few minor tweaks to account for the differences between GitHub and Bitbucket/Jira

    r-pkgs.org/release.html

    I highly recommend this book for anyone who is writing or maintaining R code! #rstats #statsodon

  3. New blog post! Seven (7!) new tidyexplain-esque animations showing how {dplyr}'s mutate(), summarize(), group_by(), and ungroup() all work together #rstats #statsodon andrewheiss.com/blog/2024/04/0

  4. New blog post! Have you (like me!) wondered what the ATT means in causal inference and how it's different from average treatment effects (ATE)? I use #rstats to explore why we care about the ATE, ATT, and ATU and show how to calculate them with observational data! andrewheiss.com/blog/2024/03/2 #statsodon

  5. This paper by @nickchk (doi.org/10.1080/1350178X.2022. ; ungated here: https: //ftp.cs.ucla.edu/pub/stat_ser/huntington-klein-jem-june2022.pdf) is the best, most accessible introduction and explanation of how DAGs can be useful for causal inference for people more familiar with potential outcomes and econometrics-style approaches #statsodon #CausalInference

  6. It's DAG day in class today and I *think* figured out a way to animatedly demonstrate collider bias (at least the selection bias version of it) #CausalInference #Statsodon

  7. Many clinical studies evaluate the benefit of a treatment based on both survival and other continuous/ordinal clinical outcomes, such as quality of life scores. In these studies, when subjects die before the follow-up assessment, the clinical outcomes become undefined and are truncated by death. Treating outcomes as “missing” or “censored” due to death can be misleading for treatment effect evaluation.

    #statsodon #StatisticsInMedicine

    onlinelibrary.wiley.com/doi/10

  8. Interesting reading: Kernel Cox partially linear regression.

    Building kernel Cox proportional hazards semi-parametric model and regularized garrotized kernel machine (RegGKM) method to account wide heterogeneity in cancer patients’ survival due to molecular profiles. #stats #StatisticsInMedicine #statsodon

    onlinelibrary.wiley.com/doi/10

  9. “Split sample validation can require up to 20,000 observations to perform well enough. Otherwise the results may depend dramatically on the luck of the split. That’s why 100 repeats of 10-fold cross-validation or several hundred bootstrap resamples provide better estimates of likely model performance in most cases.”

    Frank Harrel’s answer is a must-read.

    #statistics #stats #statsodon

    stats.stackexchange.com/questi

  10. #R/Pharma is organizing a bunch of amazing workshop for its 2023 conference. They are online and free and they will take place in October. In case you're interested: rinpharma.com/workshop/2023con

    #rstats #Statsodon #statistics

  11. Update! The actual reason I had to figure out this distribution is because the ordered beta model I was using used it to define priors for the values *between* the Dirichlet columns. The post now shows how to work with those cutpoints #rstats #statsodon #Bayesian andrewheiss.com/blog/2023/09/1

  12. New post! Have you (like me) been confused/intimidated by Dirichlet distributions? Here's a basic, visual-heavy, intuition-heavy guide to the Dirichlet distribution. It's just a Beta distribution, but ~fancy~! #rstats #statsodon andrewheiss.com/blog/2023/09/1

  13. yessssss this brms bayesian model for a conjoint survey experiment took 3 hours to fit, estimated nearly 40,000 unique parameters, takes up 4 GB of space, and is most definitely way overkill, but IT CONVERGED AND WORKS GLORIOUSLY #rstats #bayesian #statsodon

  14. Also, in the course of adding DOIs to past posts, I updated my big ol' guide to different flavors of marginal effects to use {marginaleffects}'s newer slopes(), predictions(), and comparisons() functions andrewheiss.com/blog/2022/05/2 #rstats #statsodon

  15. Q about #bayesian stuff: I'm finding the probability of direction (proportion of posterior that's >0 or <0), but I never know how to report these, since sometimes they're positive and sometimes they're negative. My current solution is to use a column for each direction—is there a better way tho? #statsodon

  16. Check out this new ultimate guide to multilevel/hierarchical multinomial conjoint analysis with #rstats and {brms}, including how to find both marketing-style predicted market shares *and* polisci-style causal effects *across individual covariates* #bayesian #statsodon

    andrewheiss.com/blog/2023/08/1

  17. Probably super naive multilevel modeling question that I'm way overthinking (discourse.mc-stan.org/t/does-t):

    I have data like this, with variables measured at different levels. In raw Stan, this can be estimated w/2 diff datasets.

    Does this brms formula do the same thing? #rstats #bayesian #statsodon

  18. Here it is! The ultimate practical guide to Bayesian and frequentist conjoint data analysis with #rstats and {brms} and {marginaleffects}, including how to distinguish between marginal effects and marginal means + work with subgroups! #statsodon andrewheiss.com/blog/2023/07/2

  19. throwing some do() operators into this conjoint blog post so you know it's serious causal inference #CausalInference #statsodon

  20. regular PSA for those working with survey data and Likert scales:

    It's "lick-ert" not "like-ert"

    en.wikipedia.org/wiki/Likert_s #statsodon

  21. New blog post! Here's a guide to calculating the differences between categorical proportions in a principled, #bayesian way with #rstats, #mcmcstan, and {brms}, including fancy things like mosaic plots (with {ggmosaic} and striped fills (with {ggpattern}) andrewheiss.com/blog/2023/05/1 #statsodon

  22. Using binomial(link = "identity") in a #brms model to get differences in proportions between different categories, and it feels wrong but it works really well and is actually kinda neat 🤷‍♂️ #rstats #bayesian #statsodon

    (Here's how to do it with tidybayes and marginaleffects: gist.github.com/andrewheiss/a1)

  23. random walk, n., the route through an open plan office taken by a #statistician whilst waiting for their #MCMC chains to converge (hopefully). Expected length of route may depend on factors such as hardware specifications, informativeness of #priors, and whether there's a good coffee machine nearby. #statsodon #Bayesian #iamworking @pymc

  24. random walk, n., the route through an open plan office taken by a #statistician whilst waiting for their #MCMC chains to converge (hopefully). Expected length of route may depend on factors such as hardware specifications, informativeness of #priors, and whether there's a good coffee machine nearby. #statsodon #Bayesian #iamworking @pymc

  25. random walk, n., the route through an open plan office taken by a #statistician whilst waiting for their #MCMC chains to converge (hopefully). Expected length of route may depend on factors such as hardware specifications, informativeness of #priors, and whether there's a good coffee machine nearby. #statsodon #Bayesian #iamworking @pymc

  26. random walk, n., the route through an open plan office taken by a #statistician whilst waiting for their #MCMC chains to converge (hopefully). Expected length of route may depend on factors such as hardware specifications, informativeness of #priors, and whether there's a good coffee machine nearby. #statsodon #Bayesian #iamworking @pymc

  27. ahhh this new #bayesian ordered beta regression model family (package: github.com/saudiwin/ordbetareg; paper: doi.org/10.1017/pan.2022.20) is so so neat! I have an outcome bounded at 1 and 32, and the model successfully predicts discrete 1s and 32s, as well as a continuous range in between! #rstats #brms #statsodon

  28. Talking about DAG colliders in my program evaluation class tonight, so back to my good ol' standby examples of niceness → appearance + race → police use of force #statsodon #CausalInference

  29. I love this new version of @vincentab ‘s {marginaleffects}! The whole workflow has been streamlined so you can get predictions with predictions(), contrasts/comparisons with comparisons(), and partial derivatives with slopes() + single values with avg_*() + plots with plot_*()! #rstats #statsodon

    fosstodon.org/@vincentab/10978

  30. The 8th iteration of my #ProgramEvaluation and #CausalInference course is up and live at evalsp23.classes.andrewheiss.c !

    It covers basic econometrics and DAGs, all with #rstats, and it's mostly asynchronous with dozens of hours of videos, and the whole thing is Creative Commons-licensed, so do whatever you want with it! #epitwitter #EconTwitter #statsodon

  31. This latest episode of the Casual Inference podcast on instrumental variables is fantastic and it’s neat to hear about IV from a non-econometrics perspective casualinfer.libsyn.com/website

    and my post on conditional and marginal effects makes a surprise appearance at the beginning lol andrewheiss.com/blog/2022/11/2

    #statsodon #causaltwitter