scoreTest {MoNAn}R Documentation

scoreTest

Description

Based on an estimated model, a score-type test is available that shows whether statistics representing non-included effects are well represented. If this is not the case, it is likely that including them will result in significant estimates.

Usage

scoreTest(ans, effects)

## S3 method for class 'scoretest.monan'
print(x, ...)

Arguments

ans

An object of class "result.monan" resulting from an estimation with the function estimateMobilityNetwork().

effects

An object of class "effectsList.monan" in which the non included effects that should be tested are specified.

x

An object of class "scoretest.monan".

...

For internal use only.

Value

The function scoreTest returns basic values to calculate parametric and non-parametric p-values for each tested effect.

The function print.scoretest.monan shows parametric and non-parametric p-values for each tested effect.

See Also

createEffectsObject()

Examples


# test whether other effects should be included
myEffects2 <- createEffects(myState) |>
  addEffect(transitivity_min)

test_ME.2 <- scoreTest(myResDN, myEffects2)


test_ME.2


[Package MoNAn version 1.0.0 Index]