Monday, December 7, 2009

y = a + b*x + error


proc import datafile="F:\publish\data analysis using R\data\cars.csv" out=cars dbms=csv replace;
run;

proc mixed data=cars;
model dist = speed / s;
run;

proc mixed data=cars method=ml;
model dist = speed / s;
run;

proc genmod data=cars;
model dist = speed;
run;

proc glimmix data=cars;
model dist = speed / s;
run;

proc nlmixed data=cars;
parms alpha=10 beta=10 s2e=100;
model dist ~ normal(alpha+beta*speed, s2e);
run;

No comments: