Skip to contents

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"
)

Arguments

df

Dataframe in long format containing the growth measurements

column_conditions

Name of the column where conditions are indicated

column_days

Name of the column where days are indicated

column_vals

Name of the measurement column to be used

Value

A list with all possible combinations of the pooled standard deviation

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
#>