How to establish all possible combinations of 4 variables out of 6 ?
3 次查看(过去 30 天)
显示 更早的评论
The main idea is to gather possible combinations of 4 variable out of 6 total design variables. For every combination i will calculate the R square (with my response variable) and then discard the ones that doesn't meet the required R. I also want to do a t-test and a f-test to keep only the best combination at a given time. Given the best combination, i will then obtain the betas of these variables!
0 个评论
采纳的回答
更多回答(1 个)
andrea84
2013-5-23
I believe you need something like this :
v=[var1 var2 var3 var4 var5 var6];
combinations=nchoosek(v,4)
4 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Estimation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!