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.
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.
Returns
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.
Examples
# test whether other effects should be includedmyEffects2 <- createEffects(myState)|> addEffect(transitivity_min)test_ME.2<- scoreTest(myResDN, myEffects2)test_ME.2