|
Subject: | XploRe: Learning Guide |
See XploRe: |
Quantlet: | glm04 | |
Description: | Non-interactive GLM estimation (logit model) with constraint. | |
Download: | glm04.xpl |
library("glm") ; x = read("lizard") x = paf(x,(x[,6]!=0)) y = x[,5] m = x[,6] x = matrix(rows(x))~x[,1:3]~(x[,4]==1)~(x[,4]==2) ; offset=-x[,6] opt=glmopt("off",offset,opt) c=glmest("bilo",x[,1:5],y,opt) c.b ; glmout("bilo",x[,1:5],y,c.b,c.bv,c.stat,opt)
Subject: | XploRe: Learning Guide |
See XploRe: |