Description Usage Arguments Value
View source: R/estimate_mdiff_one.R
This function estimates a mean difference from a sample mean and known population mean, returning a point estimate and a frequentist confidence interval. It can be called with raw data or summary data
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
For raw data - a dataframe or tibble |
outcome_variable |
For raw data - The name of the column to analyze or a vector of numeric data |
comparison_m |
For summary data - The sample mean |
comparison_s |
For summary data - The sample standard deviation |
comparison_n |
For summary data - The sample size |
population_m |
Known population mean; Effect size is comparison_m - population_m; defaults to 0 |
population_s |
Population standard deviation |
outcome_variable_name |
For summary data - Optional label, defaults to 'My outcome variable' |
conf_level |
The confidence level for the confidence interval. Given in decimal form. Defaults to 0.95. |
save_raw_data |
For raw data; defaults to TRUE; set to false to save memory by not returning raw data in estimate object Output: |
An object of class esci_estimate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.