inst/doc/ordinalgmifs.R

### R code from vignette source 'ordinalgmifs.Rnw'

###################################################
### code chunk number 1: ordinalgmifs.Rnw:93-94
###################################################
options(width = 70)


###################################################
### code chunk number 2: ordinalgmifs.Rnw:96-100
###################################################
library("ordinalgmifs")
data(hccframe)
cumulative.logit<-ordinalgmifs(group ~ 1, x = hccframe[,-1], 
	data = hccframe, epsilon=0.01)


###################################################
### code chunk number 3: ordinalgmifs.Rnw:105-106
###################################################
print(cumulative.logit)


###################################################
### code chunk number 4: ordinalgmifs.Rnw:109-110
###################################################
summary(cumulative.logit)


###################################################
### code chunk number 5: ordinalgmifs.Rnw:118-119
###################################################
plot(cumulative.logit)


###################################################
### code chunk number 6: ordinalgmifs.Rnw:126-127
###################################################
coef(cumulative.logit)


###################################################
### code chunk number 7: ordinalgmifs.Rnw:132-135
###################################################
phat <- predict(cumulative.logit)
table(phat$class, hccframe$group)
head(phat$predicted)

Try the ordinalgmifs package in your browser

Any scripts or data that you put into this service are public.

ordinalgmifs documentation built on May 31, 2023, 6:31 p.m.