Fit a probabilistic index model
pim_fit(
y,
X,
link = "logit",
w = NULL,
init = NULL,
tol = sqrt(.Machine$double.eps),
max.iter = 100,
nleqslv.global = "none",
trace = FALSE,
test.nleqslv = FALSE,
keep.data = FALSE
)numeric The outcome vector.
matrix The design matrix.
character The link function: "logit", or "probit".
numeric The weights, default is NULL.
numeric The initial guess of Newton's method.
numeric The numeric tolerance of nleqslv().
numeric The maximum iteration of Newton's method.
character The global strategy for Newton's method. See ?nleqslv::nleqslv.
logical Show Newton's method iteration report if TRUE.
logical Test different global strategies for Newton's method if TRUE. See ?nleqslv::testnslv.
logical Should the returned object keep original data?
A list containing the estimated coefficients and their covaraince
matrix. It also contains the diagnostics of nleqlsv() procedure.
If keep.data is TRUE, then the inputs y, X, wwill also be returned.