Hi all,
I'm looking for someone to write this model mathematically if you don't mind.
regards
proc GLIMMIX data=herd;
class testyear time ;
model mpd = testyear / oddsratio solution;
random herd(Time);
lsmeans testyear / e cl oddsratio plots ;
ods output lsmeans = MEANS;
run;
What do you mean by " write this model mathematically"?
Are you looking for some sort of raw code to duplicate the functionality?
Or an explanation of the calculations done? Read the friendly manual, i.e. the documentation for the procedure in the DETAILS section.
Something else.
something like this:
y = A + b + e
Y is a binary
a fixed effect
b is random nested within 12 months
e is residual
You can use a CODE statement to have the code piped to a file and you can use that to help you determine your final equation if you're unsure of the format.
code file='/folders/myfolders/glimmix_score_code.sas';
Changing the path to something relevant for you, the idea is above and then check the program created for the logic.
@Barkamih wrote:
Hi all,
I'm looking for someone to write this model mathematically if you don't mind.
regards
proc GLIMMIX data=herd; class testyear time ; model mpd = testyear / oddsratio solution; random herd(Time); lsmeans testyear / e cl oddsratio plots ; ods output lsmeans = MEANS; run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.