goodnessfit(object)lba.ls, lba.ls.fe, lba.ls.logit, lba.mle, lba.mle.fe, lba.mle.logitgoodnessfit function to the method lba.mle, lba.mle.fe and lba.mle.logit returns a list with the slots:goodnessfit function to the method lba.ls, lba.ls.fe and lba.ls.logit returns a list with the slots:print.goodnessfit, lbadata('votB')
# Using LS method (default) without constraint
# K = 2
ex1 <- lba(city ~ parties,
votB,
K = 2)
gx1 <- goodnessfit(ex1)
gx1
# Using MLE method without constraint
# K = 2
exm <- lba(city ~ parties,
votB,
K = 2,
method='mle')
gxm <- goodnessfit(exm)
gxmRun the code above in your browser using DataLab