marginalSS: Calculate the sum of squares of different ANOVA types

View source: R/marginalSS.R

marginalSSR Documentation

Calculate the sum of squares of different ANOVA types

Description

This function calculates the sum of squares of x according to the different ANOVA types

Usage

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

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.