Learning SAS? Welcome to the exclusive online community for all SAS learners.

extract information such as AIC

Accepted Solution Solved
Reply
Contributor
Posts: 25
Accepted Solution

extract information such as AIC

hi all,

how can i extract information such as AIC  in a seperate table from proc mixed model .if anyone knows that i really appreciate to share it with me.

 

 

thanks,


Accepted Solutions
Solution
‎08-02-2017 05:02 PM
Super User
Posts: 19,861

Re: extract information such as AIC

Your IF statement has a mistake. If you examine the OUTPUT dataset there is no value called 'AIC' so the condition never executes. It is looking for an exact text match, so check what's actually in your data.

 

Please post your code using the insert code button so no extraneous characters are introduced.

View solution in original post


All Replies
PROC Star
Posts: 307

Re: extract information such as AIC

If you see it in your output, you can get it in a dataset using "ods output..."  You can use ods trace to find out the names of the output objects and the ods output to spit the desired objects into SAS datasets.

Super User
Posts: 19,861

Re: extract information such as AIC

Contributor
Posts: 25

Re: extract information such as AIC

[ Edited ]

thanks .it was helpfull.



Solution
‎08-02-2017 05:02 PM
Super User
Posts: 19,861

Re: extract information such as AIC

Your IF statement has a mistake. If you examine the OUTPUT dataset there is no value called 'AIC' so the condition never executes. It is looking for an exact text match, so check what's actually in your data.

 

Please post your code using the insert code button so no extraneous characters are introduced.

Contributor
Posts: 25

Re: extract information such as AIC

appreciate you . it solved my problem.

Contributor
Posts: 25

Re: extract information such as AIC

Hi .

 i used ods output to extract AIC from Fit Statistics table ,it gives me the answer in log  but i need to have it in a new html table .is there any way to do that ? if anybody knows that i appreciate to help me.

Contributor
Posts: 25

Re: extract information such as AIC

[ Edited ]

thanks.

 

 

 

Super User
Posts: 19,861

Re: extract information such as AIC

@fatemeh Please post this as a new question and clarify your requirements. 

Rather than a loop you should see if you can use BY or check if the proc can handle multiple model statements. 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 8 replies
  • 547 views
  • 4 likes
  • 3 in conversation