ttest.flex: Independent samples t-test

View source: R/ttest.R

ttest.flexR Documentation

Independent samples t-test

Description

Independent samples t-test

Usage

ttest.flex(
  data,
  form,
  effect = "d",
  type = "two.sided",
  deci = 2,
  conf.level = 0.95,
  lang = "hr"
)

Arguments

data

dataset

form

formula in format dependent ~ independent. Can have multiple dependent varibles (dep1+dep2+dep3~ind) or multiple independent variables (dep~ind1+ind2+ind3), but NOT BOTH.

effect

effect size "d" (default) for Cohen's d or "prob_sup" for probability of superiority.

type

type of test (one or two sided). Options are "two.sided" (default), "greater" and "less".

deci

number of decimal places for M

conf.level

confidence level

lang

language of the output. Options are "hr" (default) and "en".

Value

list with table as flextable and data frame with results


mrajter/rajter.flex documentation built on July 30, 2024, 1:31 a.m.