TestMonotonicityRE {aihuman} | R Documentation |
Test monotonicity using frequentist analysis with random effects for the hearing date of the case.
TestMonotonicityRE(data, formula)
data |
A |
formula |
A formula of the model to fit. |
Message indicating whether the monotonicity assumption holds.
data(synth)
data(hearingdate_synth)
synth$CourtEvent_HearingDate = hearingdate_synth
TestMonotonicityRE(synth, formula = "Y ~ Sex + White + Age +
CurrentViolentOffense + PendingChargeAtTimeOfOffense +
PriorMisdemeanorConviction + PriorFelonyConviction +
PriorViolentConviction + (1|CourtEvent_HearingDate) + D")