LAG function

LAG Function (SAS 9.2 Doc)*** Use a third variable to assign the value from the previous record;array one a b c d;array two e f g h;&nbsp &nbsp &nbsp do over one;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp temp = lag(one);&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if…

SAS Data Step Illustrated: Guest Blog by Jiangtang Hu

The following blog is reprinted by permission of the author Jiangtang Hu. Hu is a SAS programmer living in Beijing who writes blogs in both English and Chinese. (Full disclosure: Hu quoted The Little SAS Book, but I had never met him before he wrote this blog.) SAS Data Step’s Built-in Loop: An Illustrated Example […]

PROC LOGISTIC odds ratio estimate

I ran into some problems with the interpretation of the parameter estimate of the logistic model recently. When I contacted SAS, here’s their response. Please make sure you specify PARAM=GLM option in the CLASS statement when you want the parameterizat…