Learn R Programming

MoNAn (version 1.1.0)

scoreTest: 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 scoretest.monan print(x, ...)

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.

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.

See Also

createEffectsObject()

Examples

Run this code
# \donttest{
# test whether other effects should be included
myEffects2 <- createEffects(myState) |>
  addEffect(transitivity_min)

test_ME.2 <- scoreTest(myResDN, myEffects2)
# }
# \donttest{
test_ME.2
# }

Run the code above in your browser using DataLab