get_mantelhaenszel: Function that returns the Mantel-Haenszel effect size measure...

Description Usage Arguments Value Examples

View source: R/get_mantelhaenszel.R

Description

Function that returns the Mantel-Haenszel effect size measure of a Raschtree object

Usage

1
get_mantelhaenszel(object, purification, by = "node")

Arguments

object

An object of type Raschtree

purification

A character indicating the type of purification ("none", "2step", "iterative")

by

A character either "node" or "type" defining the structure of the function output

Value

If by = "node": a list with one entry for each node; If by = "type": a list with entries Mantel-Haenszel effect size, classification, purification type, and purification_counter

Examples

1
2
3
4
5
6
7
## Not run: 
data("DIFSim", package = "psychotree")
RT <- raschtree(resp ~ age + gender + motivation, data = DIFSim)
MH <- get_mantelhaenszel(RT, purification = "iterative", by = "type")
MH

## End(Not run)

mirka-henninger/raschTreeEffectSize documentation built on Nov. 14, 2021, 11:15 p.m.