marginalMeans: Calculate the marginal means of different ANOVA types

View source: R/marginalMeans.R

marginalMeansR Documentation

Calculate the marginal means of different ANOVA types

Description

This function calculates the marginal means of x according to the different ANOVA types

Usage

marginalMeans(
  means,
  freq,
  k.levels = NULL,
  type = c("I", "II", "III", "ATE"),
  fixed = NA
)

Arguments

means

matrix of means, the columns denote the covariates and the rows the different x levels

freq

matrix of frequencies, the columns denote the covariates and the rows the different x levels

k.levels

numeric vector with the number of levels for all covariates (K1, K2, ...)

type

numeric or character vector denoting the ANOVA types to be calculated (allowed values are any of the following: "I", 1, "II", 2, "III", 3, "ATE")

fixed

numeric vector with the levels the corresponding covariates should be fixed to (NA for no fixing)


AlexSchauerte/unbANOVA documentation built on April 12, 2022, 2:40 a.m.