Nothing
######################################################################################################################
# Compute the effect size for continuous based on non-missing values in the combined sample
EffectSizeContStat = function(sample.list, parameter) {
# Determine the function call, either to generate the statistic or to return description
call = (parameter[[1]] == "Description")
if (call == FALSE | is.na(call)) {
# Error checks
if (length(sample.list)!=2)
stop("Analysis model: Two samples must be specified in the EffectSizeContStat statistic.")
# Merge the samples in the sample list
sample1 = sample.list[[1]]
# Merge the samples in the sample list
sample2 = sample.list[[2]]
# Select the outcome column and remove the missing values due to dropouts/incomplete observations
outcome1 = sample1[, "outcome"]
outcome2 = sample2[, "outcome"]
mean1 = mean(stats::na.omit(outcome1))
mean2 = mean(stats::na.omit(outcome2))
sdcom = stats::sd(c(stats::na.omit(outcome1),stats::na.omit(outcome2)))
result = (mean2 - mean1) / sdcom
}
else if (call == TRUE) {
result = list("Effect size (continuous)")
}
return(result)
}
# End of EffectSizeContStat
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.