Description Usage Arguments Value Examples
View source: R/add_mantelhaenszel.R
Creates a raschtreeMH object based on the original Raschtree with additional Mantel-Haenszel effect size information
1 | add_mantelhaenszel(object, purification)
|
object |
An object of type Raschtree |
purification |
A character indicating the type of purification ("none", "2step", "iterative") |
An object of type raschtreeMH with 'info' extended by a list named mantelhaenszel containing entries Mantel-Haenszel effect size, classification, purification type, and purificationCounter
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.