Skip to content
Prev 243892 / 398506 Next

What is the SAS equivalent of this R glm() code?

On Dec 3, 2010, at 22:42 , Paul Miller wrote:

            
Well, you're not saying what "." contains, so no-one can foresee all implications, but the closest parallels are usually found with PROC GENMOD. Something like

  proc genmod data=ingot2;
  model r/n=t / dist=binomial link=probit;
  run;

(shamelessly lifted from a Google search)

Notes: 

- I don't think you can avoid spelling out the list of variables in "."

- "-1" (no intercept) is obtained by adding "noint" after the "/" in the model statement

- for binary regression, I believe you may have to explicitly generate a variable n=1

- beware differences in contrast parametrizations for categorical variables