Description Usage Arguments Value Examples
View source: R/get_mantelhaenszel.R
Function that returns the Mantel-Haenszel effect size measure of a Raschtree object
1 | get_mantelhaenszel(object, purification, by = "node")
|
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 |
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.