Learn R Programming

partialOR (version 0.9)

fitOR: FITTING H- and F-MODELS

Description

Fits the multinomial logistic regression models. See partialOR() for details.

Usage

fitOR(dd)

Arguments

dd
data frame with variables x,y,z1,...,zm

Value

fitH
details of the H-model fit as returned by the optimization procedure optim()
fitF
details of the F-model fit as returned by the function summary.nnet()
fit0
details of the null model, i.e. the model without covariates, as returned by nnet()

Examples

Run this code
## simulate example data 
dd <- simData(50,2,1.5,123) 
## fit the models
ff <- fitOR(dd) 
## display parameter estimates of the H-model
ff$fitH$coefficients

Run the code above in your browser using DataLab