add_mantelhaenszel: Creates a raschtreeMH object based on the original Raschtree...

Description Usage Arguments Value Examples

View source: R/add_mantelhaenszel.R

Description

Creates a raschtreeMH object based on the original Raschtree with additional Mantel-Haenszel effect size information

Usage

1
add_mantelhaenszel(object, purification)

Arguments

object

An object of type Raschtree

purification

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

Value

An object of type raschtreeMH with 'info' extended by a list named mantelhaenszel containing entries Mantel-Haenszel effect size, classification, purification type, and purificationCounter

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data("DIFSim", package = "psychotree")
RT <- raschtree(resp ~ age + gender + motivation, data = DIFSim,
                stopfun = stopfun_mantelhaenszel(purification = "iterative"))
RT_MH <- add_mantelhaenszel(RT, purification = "iterative")
RT_MH$info$mantelhaenszel
plot(RT_MH, color_by_node = 1)

## End(Not run)

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