ALL POSSIBLE COMBINATION WITH INDEPENDENT VARIABLE

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ALL POSSIBLE COMBINATION WITH INDEPENDENT VARIABLE

caetano
Hello everyone,

I need to do a probit regression with 5 independent variables but I have 16. In other words, I need to do all possible regressions with 16 variables 5 at the time - something like this:

Y = a + x1 + x2 + x3 + x4 + x5
y = a + x1 + x11 + x13 + x14 + x6
y = a + x10 + x2 + x9 + x8 + x7
 ...

In the end I need the expression with the highest R^2 and the independent variables should be independent and with the lowest AIC information.

Is there any way to perform this?

Thanks for the help,
João Caetano
Reply | Threaded
Open this post in threaded view
|

Re: ALL POSSIBLE COMBINATION WITH INDEPENDENT VARIABLE

David Marso
Administrator
Check the archives of this group on how to generate combinations.
Have you thought about generating them with nested loops to create a file of variable indices then use these indices to build your command syntax?  Probably SWIM will come up with a Python solution ;-)
--

caetano wrote
Hello everyone,

I need to do a probit regression with 5 independent variables but I have 16. In other words, I need to do all possible regressions with 16 variables 5 at the time - something like this:

Y = a + x1 + x2 + x3 + x4 + x5
y = a + x1 + x11 + x13 + x14 + x6
y = a + x10 + x2 + x9 + x8 + x7
 ...

In the end I need the expression with the highest R^2 and the independent variables should be independent and with the lowest AIC information.

Is there any way to perform this?

Thanks for the help,
João Caetano
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: ALL POSSIBLE COMBINATION WITH INDEPENDENT VARIABLE

Bruce Weaver
Administrator
In reply to this post by caetano
This sounds like a fishing expedition to me.  Have you ever looked at Frank Harrell's book on regression models?  Mike Babyak's nice article summarizes the main points about over-fitting.  You can get it here:

  http://os1.amc.nl/mediawiki/images/Babyak_-_overfitting.pdf
  http://www.psychosomaticmedicine.org/content/66/3/411.abstract

HTH.

caetano wrote
Hello everyone,

I need to do a probit regression with 5 independent variables but I have 16. In other words, I need to do all possible regressions with 16 variables 5 at the time - something like this:

Y = a + x1 + x2 + x3 + x4 + x5
y = a + x1 + x11 + x13 + x14 + x6
y = a + x10 + x2 + x9 + x8 + x7
 ...

In the end I need the expression with the highest R^2 and the independent variables should be independent and with the lowest AIC information.

Is there any way to perform this?

Thanks for the help,
João Caetano
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).