Thank you for the guidance. For example, this code works with the data: proc surveyreg data=lib_sup.data_sup; weight var1; cluster var2; strata var3; class ex1; model oc_a = var4 var5 var6 ex1; lsMEANS ex1k; oc_a is the outcome ex1 is the exposure of interest needing ls mean estimates Obviously “&exposure&k” and “&outcome&I” are not correctly stated. I would like to have the next variable in the list indicated in the model. I am in over my head and appreciate the help. Here is the current error: NOTE 137-205: Line generated by the invoked macro "SUP4". 1 proc surveyreg data=lib_sup.data_sup; weight var1; cluster var2; strata var3; class 1 ! &exposure&k; model &outcome&I.= var4 var5 var6 &exposure&k.; lsMEANS &exposure&k; 22 ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, *, -, /, :, @, _CHARACTER_, _CHAR_, _NUMERIC_, |.
... View more