waldtestpV: Function to get Wald test p-value results

Description Usage Arguments Examples

Description

Function to get Wald test p-value results

Usage

1
WaldtestpV(object, shift = NULL, ...)

Arguments

object

anchorpoint object as produced by the function anchorpoint

shift

shift in item parameters for the second group, default NULL (for global optimum), else numeric (for user-defined shift)

...

further arguments for signif(x,...) (digits)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Load the SPISA data set (general knowledge quiz - more information at ?SPISA)
library("psychotree")
data("SPISA")

# Fit the Rasch Models for the two groups females and males
fit <- raschFit(SPISA, resp.mat.name='spisa', group.name='gender')

# Rasch Model fit for the first and second group
rm1 <- fit$rm1
rm2 <- fit$rm2

# Fit an Anchorpoint object
ap_object <- anchorpoint(rm1,rm2,select = "Gini Index", grid = "sparse")

# Obtain the Wald test p-values
WaldtestpV(ap_object)

lucasmanuelkohler/anchorpoint documentation built on April 16, 2021, 6:41 a.m.