BookmarkSubscribeRSS Feed
Agerholm
Calcite | Level 5
I am running the same type of analysis over and over with just one variable changing. Anyone know if it is possible to make a kind of loop?
I am running logistic regressions.
Regards
Janne Agerholm
2 REPLIES 2
deleted_user
Not applicable
Without some code to look at, it is difficult to say definitively. However, most analytic procedures allow you to define a set of variables that will each be analysed in the specified context. Sometimes the syntax is similar to "Model ( A, B, C) * C;"

Reference to the online help for the procedure should assist.

There is a temptation to send the variable names to a macro where each regression is run in sequence. I would suggest you think very carefully before undertaking such a solution.

If you define a P value of perhaps 0.05, then you run a single analysis with a given risk of getting a false positive for that test. If you run 20 such tests, without adjusting your parameters, then you run a more severe risk of getting a false positive. This is usually called experiment wide risk.

The analysis that said the risk of an O ring failing was acceptable failed to take into account the actual cumulative risk of having a series of these O rings exposed to similar stresses. You may recall that particular analysis was partially responsible for the destruction of the space shuttle Challenger. Which serves to remind that repeated single tests may not be suitable for accurately calculating the probability of a given outcome.

Further and more definitive answers on probability tests can be found in the SUGI papers by David Cassell which are available on the SAS support website.

Kind regards

David
statsplank
Calcite | Level 5
Hi Janne,

I could show you how to write such program. I will need the following:

1. your model with the variable that you'd like to change;
2. list of variables each of which will be used for that variable.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

Discussion stats
  • 2 replies
  • 855 views
  • 0 likes
  • 3 in conversation