@@ -78,7 +78,7 @@ The package documentation can be found
7878
7979## Report all the things
8080
81- <a href=https://easystats.github.io/report/> <img src =" man/figures/allthethings.jpg " height =" 60 " ></a >
81+ <a href=https://easystats.github.io/report/> <img src =" man/figures/allthethings.jpg " height =" 60 " alt = " All the things meme by Allie Brosh " ></a >
8282
8383### General Workflow
8484
@@ -262,28 +262,28 @@ report(model)
262262 # of 1000 iterations and a warmup of 500) to predict mpg with qsec and wt
263263 # (formula: mpg ~ qsec + wt). Priors over parameters were all set as normal (mean
264264 # = 0.00, SD = 8.43; mean = 0.00, SD = 15.40) distributions. The model's
265- # explanatory power is substantial (R2 = 0.81, 95% CI [0.69 , 0.89 ], adj. R2 =
266- # 0.79). The model's intercept, corresponding to qsec = 0 and wt = 0, is at 19.56
267- # (95% CI [9.60, 30.59 ]). Within this model:
265+ # explanatory power is substantial (R2 = 0.81, 95% CI [0.70 , 0.90 ], adj. R2 =
266+ # 0.79). The model's intercept, corresponding to qsec = 0 and wt = 0, is at 19.80
267+ # (95% CI [8.93, 29.80 ]). Within this model:
268268 #
269- # - The effect of qsec (Median = 0.94 , 95% CI [0.38 , 1.45 ]) has a 99.90 %
270- # probability of being positive (> 0), 98.80 % of being significant (> 0.30), and
271- # 0.05 % of being large (> 1.81). The estimation successfully converged (Rhat =
272- # 1.001 ) and the indices are reliable (ESS = 1921 )
273- # - The effect of wt (Median = -5.05 , 95% CI [-6.01 , -4.05 ]) has a 100.00%
269+ # - The effect of qsec (Median = 0.93 , 95% CI [0.40 , 1.49 ]) has a 100.00 %
270+ # probability of being positive (> 0), 99.05 % of being significant (> 0.30), and
271+ # 0.25 % of being large (> 1.81). The estimation successfully converged (Rhat =
272+ # 1.000 ) and the indices are reliable (ESS = 1864 )
273+ # - The effect of wt (Median = -5.04 , 95% CI [-5.99 , -4.08 ]) has a 100.00%
274274 # probability of being negative (< 0), 100.00% of being significant (< -0.30),
275275 # and 100.00% of being large (< -1.81). The estimation successfully converged
276- # (Rhat = 1.000 ) and the indices are reliable (ESS = 2020 )
276+ # (Rhat = 0.999 ) and the indices are reliable (ESS = 2424 )
277277 #
278278 # Following the Sequential Effect eXistence and sIgnificance Testing (SEXIT)
279279 # framework, we report the median of the posterior distribution and its 95% CI
280280 # (Highest Density Interval), along the probability of direction (pd), the
281281 # probability of significance and the probability of being large. The thresholds
282282 # beyond which the effect is considered as significant (i.e., non-negligible) and
283- # large are |0.30| and |1.81|. Convergence and stability of the Bayesian sampling
284- # has been assessed using R-hat, which should be below 1.01 (Vehtari et al.,
285- # 2019), and Effective Sample Size (ESS) , which should be greater than 1000
286- # (Burkner, 2017).
283+ # large are |0.30| and |1.81| (corresponding respectively to 0.05 and 0.30 of the
284+ # outcome's SD). Convergence and stability of the Bayesian sampling has been
285+ # assessed using R-hat , which should be below 1.01 (Vehtari et al., 2019), and
286+ # Effective Sample Size (ESS), which should be greater than 1000 (Burkner, 2017).
287287
288288## Other types of reports
289289
@@ -296,10 +296,16 @@ model <- lm(Sepal.Length ~ Species, data = iris)
296296
297297report_model(model )
298298# linear model (estimated using OLS) to predict Sepal.Length with Species (formula: Sepal.Length ~ Species)
299+ ```
300+
301+ ``` r
299302
300303report_performance(model )
301304# The model explains a statistically significant and substantial proportion of
302305# variance (R2 = 0.62, F(2, 147) = 119.26, p < .001, adj. R2 = 0.61)
306+ ```
307+
308+ ``` r
303309
304310report_statistics(model )
305311# beta = 5.01, 95% CI [4.86, 5.15], t(147) = 68.76, p < .001; Std. beta = -1.01, 95% CI [-1.18, -0.84]
@@ -334,7 +340,7 @@ Report can also help you create a sample description table (also
334340referred to as ** Table 1** ).
335341
336342``` r
337- report_sample(iris , group_by = " Species" )
343+ report_sample(iris , by = " Species" )
338344```
339345
340346| Variable | setosa (n=50) | versicolor (n=50) | virginica (n=50) | Total (n=150) |
@@ -353,32 +359,35 @@ analysis paragraph about the tools used.
353359report(sessionInfo())
354360```
355361
356- # Analyses were conducted using the R Statistical language (version 4.2.2 ; R Core
357- # Team, 2022 ) on macOS Ventura 13.1 , using the packages lme4 (version 1.1.32;
358- # Bates D et al., 2015), Matrix (version 1.5.3 ; Bates D et al., 2022), Rcpp
359- # (version 1.0.10 ; Eddelbuettel D, François R, 2011 ), rstanarm (version 2.21.3 ;
360- # Goodrich B et al., 2022 ), report (version 0.5.7 ; Makowski D et al., 2023) and
361- # dplyr (version 1.1.0 ; Wickham H et al., 2023).
362+ # Analyses were conducted using the R Statistical language (version 4.4.0 ; R Core
363+ # Team, 2024 ) on Windows 11 x64 (build 22631) , using the packages lme4 (version
364+ # 1.1.35.3; Bates D et al., 2015), Matrix (version 1.7.0 ; Bates D et al., 2024),
365+ # Rcpp (version 1.0.12 ; Eddelbuettel D et al., 2024 ), rstanarm (version 2.32.1 ;
366+ # Goodrich B et al., 2024 ), report (version 0.5.8.3 ; Makowski D et al., 2023) and
367+ # dplyr (version 1.1.4 ; Wickham H et al., 2023).
362368 #
363369 # References
364370 # ----------
365371 # - Bates D, Mächler M, Bolker B, Walker S (2015). "Fitting Linear Mixed-Effects
366372 # Models Using lme4." _Journal of Statistical Software_, *67*(1), 1-48.
367373 # doi:10.18637/jss.v067.i01 <https://doi.org/10.18637/jss.v067.i01>.
368- # - Bates D, Maechler M, Jagan M (2022 ). _Matrix: Sparse and Dense Matrix Classes
369- # and Methods_. R package version 1.5-3 ,
374+ # - Bates D, Maechler M, Jagan M (2024 ). _Matrix: Sparse and Dense Matrix Classes
375+ # and Methods_. R package version 1.7-0 ,
370376 # <https://CRAN.R-project.org/package=Matrix>.
371- # - Eddelbuettel D, François R (2011). "Rcpp: Seamless R and C++ Integration."
372- # _Journal of Statistical Software_, *40*(8), 1-18. doi:10.18637/jss.v040.i08
377+ # - Eddelbuettel D, Francois R, Allaire J, Ushey K, Kou Q, Russell N, Ucar I,
378+ # Bates D, Chambers J (2024). _Rcpp: Seamless R and C++ Integration_. R package
379+ # version 1.0.12, <https://CRAN.R-project.org/package=Rcpp>. Eddelbuettel D,
380+ # François R (2011). "Rcpp: Seamless R and C++ Integration." _Journal of
381+ # Statistical Software_, *40*(8), 1-18. doi:10.18637/jss.v040.i08
373382 # <https://doi.org/10.18637/jss.v040.i08>. Eddelbuettel D (2013). _Seamless R and
374383 # C++ Integration with Rcpp_. Springer, New York. doi:10.1007/978-1-4614-6868-4
375384 # <https://doi.org/10.1007/978-1-4614-6868-4>, ISBN 978-1-4614-6867-7.
376- # Eddelbuettel D, Balamuta JJ (2018). "Extending extitR with extitC ++: A Brief
377- # Introduction to extitRcpp ." _The American Statistician_, *72*(1), 28-36.
385+ # Eddelbuettel D, Balamuta J (2018). "Extending R with C ++: A Brief Introduction
386+ # to Rcpp ." _The American Statistician_, *72*(1), 28-36.
378387 # doi:10.1080/00031305.2017.1375990
379388 # <https://doi.org/10.1080/00031305.2017.1375990>.
380- # - Goodrich B, Gabry J, Ali I, Brilleman S (2022 ). "rstanarm: Bayesian applied
381- # regression modeling via Stan." R package version 2.21.3 ,
389+ # - Goodrich B, Gabry J, Ali I, Brilleman S (2024 ). "rstanarm: Bayesian applied
390+ # regression modeling via Stan." R package version 2.32.1 ,
382391 # <https://mc-stan.org/rstanarm/>. Brilleman S, Crowther M, Moreno-Betancur M,
383392 # Buros Novik J, Wolfe R (2018). "Joint longitudinal and time-to-event models via
384393 # Stan." StanCon 2018. 10-12 Jan 2018. Pacific Grove, CA, USA.,
@@ -387,11 +396,11 @@ report(sessionInfo())
387396 # "Automated Results Reporting as a Practical Tool to Improve Reproducibility and
388397 # Methodological Best Practices Adoption." _CRAN_.
389398 # <https://easystats.github.io/report/>.
390- # - R Core Team (2022 ). _R: A Language and Environment for Statistical
399+ # - R Core Team (2024 ). _R: A Language and Environment for Statistical
391400 # Computing_. R Foundation for Statistical Computing, Vienna, Austria.
392401 # <https://www.R-project.org/>.
393402 # - Wickham H, François R, Henry L, Müller K, Vaughan D (2023). _dplyr: A Grammar
394- # of Data Manipulation_. R package version 1.1.0 ,
403+ # of Data Manipulation_. R package version 1.1.4 ,
395404 # <https://CRAN.R-project.org/package=dplyr>.
396405
397406## Credits
@@ -401,7 +410,6 @@ as follows:
401410
402411``` r
403412citation(" report" )
404-
405413To cite in publications use :
406414
407415 Makowski , D. , L üdecke , D. , Patil , I. , Th ériault , R. , Ben - Shachar ,
0 commit comments