BookmarkSubscribeRSS Feed
rob2
Calcite | Level 5

Hi there,

 

given a model file in .sas7bdat format, is there a way to see the model parameters that model file was fitted with from the command line? 

For example to see what the max depth, number of leaves, learning rate etc were originally specified as?    

 

thanks very much for your time!

Rob.

 

 

2 REPLIES 2
Bond007
Obsidian | Level 7

proc contents data=model_file;
run;

 

proc contents basically gives the summarized output of entire dataset, but if it is a model then I am not sure, but it is worth a try.

 

Regards,

Bond.

rob2
Calcite | Level 5

Thank you for that 🙂 

proc contents data='/path_to_file/file.sas7bdat';
run;

 

That does run, and produce some summary information printed to the .lst file

The next bit is how to determine what the model parameters are given the output that produces:

 

I can see the following in the output:

Alphabetic List of Variables and Attributes

# Variable Type Len

Is there a way to list the full contents of the Variables listed here?  I think this step is what would give the answer I'm looking for.

thanks again!

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 551 views
  • 0 likes
  • 2 in conversation