Learn R Programming

plot3logit (version 2.2.0)

read_model: Builds up matrix of coefficients from fitted models

Description

read_model() reads arguments model, ordinal, type and alpha passed by function field3logit() and properly sets the matrix of coefficients and the other needed model-specific functions.

Usage

read_model(model, type, alpha = NULL, vcov = NULL)

read_from_multinom(model, ...)

read_from_polr(model, ...)

read_from_mlogit(model, ...)

read_from_vgam(model, ...)

read_from_matrix(model, alpha, vcov, ...)

Arguments

model
type

class of the model. Currently, forced to "logit" by field3logit() when read_model() is called.

alpha
vcov

(only if the model is read from a matrix, otherwise it will be ignored) variance-covariance matrix of parameter estimates. The elements of the variance-covariance matrix should be ordered according to the matrix of parameter estimates where the categories of the dependent variable are the slow index, whereas the covariates are the fast index.

...

other arguments passed to or from other methods.

Value

read_model returns a named list with the following components:

B

matrix of coefficients.

vcovB

variance-covariance matrix of coefficients.

alpha

see field3logit().

model

argument type.

ordinal

logical variable indicating wheter the model is ordinal or not.

P2XB

link function.

XB2P

inverse of the link function.

DeltaB2pc

function that computes the points the curve of the field should pass through (see DeltaB2pc()).

See Also

plot3logit-package, field3logit().