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

https://CRAN.R-project.org/package=rhub

#rstats #statsodon #github #jira

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

https://r-pkgs.org/release.html

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

New blog post! Seven (7!) new tidyexplain-esque animations showing how {dplyr}'s mutate(), summarize(), group_by(), and ungroup() all work together #rstats #statsodon https://www.andrewheiss.com/blog/2024/04/04/group_by-summarize-ungroup-animations/
Visualizing {dplyr}’s mutate(), summarize(), group_by(), and ungroup() with animations | Andrew Heiss

Visually explore how {dplyr}’s more complex core functions work together to wrangle data

Andrew Heiss
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! https://www.andrewheiss.com/blog/2024/03/21/demystifying-ate-att-atu/ #statsodon
Demystifying causal inference estimands: ATE, ATT, and ATU | Andrew Heiss

Explore why we care about the ATE, ATT, and ATU and figure out how to calculate them with observational data

Andrew Heiss
This paper by @nickchk (https://doi.org/10.1080/1350178X.2022.2088085 ; 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
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
If you have a 2x3 mixed factorial design, where the interaction is sig. can you fully analyse, report*, and plot this study using SPSS, JASP, or Jamovi? #rstats #statsodon #statschat #statsquestion #research
Yes (comment how)
0%
Yes, but not fully
0%
Not sure (just checking)
80%
No (comment solution)
20%
Poll ended at .

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

https://onlinelibrary.wiley.com/doi/10.1002/sim.9922?af=R

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

https://onlinelibrary.wiley.com/doi/10.1002/sim.9938?af=R

“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

https://stats.stackexchange.com/questions/627752/too-good-to-be-true-ridge-prediction

Too good to be true? Ridge prediction

I have a small data set of 18 persons. I have an outcome variable Y, and 200 predictors. These predictors were chosen based on biology and prior data. I used the caret R package and split the data ...

Cross Validated