comparebinlinks(d1, d2, a = -8, b = 8, n = 2001, prob1 = NULL,
plot = TRUE)
robit(d1)
link.d1
.scale
The optimal scalingc
such thatmax(abs(link(x/c,d1) - link(x,d2)))
is minimised forx = seq(a,b,length.out=n)
maxdiff
The maximum difference between the two links.prob2
The corresponding probabilities fromprob1
to the second link.d2
to d1
. If prob1
is provided, then this
corresponds to probabilities under link d1
and the
probabilities are transformed to d2
. Also creates a plot of
the two link functions.comparebinlinks("logit", 7) # The robit(7) approximates logit
comparebinlinks("probit", 1, prob1 = c(.5, .6, .7, .8, .9))
Run the code above in your browser using DataLab