estimate_mdiff_2x2_mixed: Estimate the magnitude of difference for an independent...

View source: R/estimate_mdiff_2x2_mixed.R

estimate_mdiff_2x2_mixedR Documentation

Estimate the magnitude of difference for an independent groups contrast.

Description

\loadmathjax

estimate_mdiff_2x2_mixed returns point estimate and confidence intervals for a 2x2 mixed design

Usage

estimate_mdiff_2x2_mixed(
  data,
  outcome_variable_level1,
  outcome_variable_level2,
  grouping_variable,
  outcome_variable_name = "My outcome variable",
  repeated_measures_name = "Time",
  conf_level = 0.95,
  save_raw_data = TRUE
)

Arguments

data

For raw data - a dataframe or tibble

outcome_variable_level1

For raw data - The column name of the outcome variable for level 1

outcome_variable_level2

For raw data - The column name of the outcome variable for level 2

grouping_variable

For raw data - The column name of the grouping variable; only 2 levels allowed

outcome_variable_name

Optional friendly name for the outcome variable. Defaults to 'My outcome variable' or the outcome variable column name if a data frame is passed.

repeated_measures_name

Optional friendly name for the repeated measures name. Defaults to 'Time'

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

Value

Returnsobject of class esci_estimate

Examples

# From Raw Data ------------------------------------
# Just pass in the data source, grouping column, and outcome column.
# You can pass these in by position, skipping the labels:

# Note... not sure if PlantGrowth dataset meets assumptions for this analysis
estimate_mdiff_2x2_between(

)


rcalinjageman/esci4 documentation built on May 18, 2023, 4:01 a.m.