Publications by Pedro Henrique Brant

How does standard deviation behave with low sample sizes?

20.06.2023

In this week’s forum threads for the Principles and Practice of Clinical research, one of the posts raises the question: Why We Underestimate Variance for Sample Size Calculation? The colleagues that posted before me all found this question hard to answer, and, when looking at their answers, I agreed. I couldn’t come up with verifiable rea...

2595 sym R (1415 sym/4 pcs) 2 img 1 tbl

Creating centralTendencyPlot

25.05.2023

Creating centralTendencyPlot function As one of the measures I wanted to plot was the mode, and there is no mode function already programmed into R, one needed to be created. getMode <- function(v, na.rm = FALSE) { if(na.rm){ #if na.rm is TRUE, remove NA values from input x v <- v[!is.na(v)] } uniqv <- u...

377 sym R (2302 sym/5 pcs) 3 img

Assessing Normality - A Post for week 8 PPCR

23.05.2023

Hello Witches and Wizards, :male_mage: In the initial posts for this thread, my colleagues aptly described the formal and informal ways with which we can assess for normality. In this post, I’d like to add to the discussion by showing examples of how this can be done in practice using the R programming language. In order for us to start, it�...

2086 sym 2 img

Final Assignment Reproducible Research

21.03.2023

Synopsis In this analysis, we’re going to get the Storm Data database from the U.S. National Oceanic and Atmospheric Administration’s (NOAA) website. Then we’ll conduct some exploratory analysis to understand the data better. We’ll then modify the data set to better suit our analysis needs. Finally, we’ll proceed to answer the questio...

5138 sym R (8718 sym/27 pcs) 3 img