Calculate pooled standard deviation from the first day of treatment
Source:R/get_pooled_sds.R
get_pooled_sds.Rd
Given all possible pairwise combinations of the conditions, calculate a pooled standard deviation of the selected values (log10tf by default). The pooled standard deviation is used to get a Cohen's d effect size. The procedure follows what is recommended in the paper https://journals.sagepub.com/doi/10.1037/a0030048
Usage
get_pooled_sds(
df,
column_conditions = "treatment",
column_days = "days_after_treatment",
column_vals = "log10tf"
)
Examples
pooled_sds <- get_pooled_sds(t110_ivis_long)
head(pooled_sds)
#> $ctrl_e2
#> pooled_sd
#> 1 0.4530866
#>
#> $ctrl_p4
#> pooled_sd
#> 1 0.4530849
#>
#> $ctrl_e2p4
#> pooled_sd
#> 1 0.5339771
#>
#> $e2_p4
#> pooled_sd
#> 1 0.501454
#>
#> $e2_e2p4
#> pooled_sd
#> 1 0.610014
#>
#> $p4_e2p4
#> pooled_sd
#> 1 0.5788281
#>