Subject: | XploRe: Learning Guide |
See XploRe: |
Quantlet: | glm02 | |
Description: | Non-interactive GLM estimation (linear regression). | |
Download: | glm02.xpl |
library("glm") ; randomize(0) n=100 b=1|2 p=rows(b) x=2.*uniform(n,p) y=x*b+normal(n)./2 ; g=glmest("noid",matrix(rows(x))~x,y) g.b ; glmout("noid",matrix(rows(x))~x,y,g.b,g.bv,g.stat) ;
Subject: | XploRe: Learning Guide |
See XploRe: |