Hi all,
I have the following code
I want to find the model with the smallest IC.
I want to fit all possible models that can be fitted with 1 variable at a time, 2 variables at a time, 3 variables at a time and so on.
How do I do this? This seems a simple thing to do but I'm struggling to figure this out.
Thanks
Andre
I have the following code
Code:
webuse nhefs, clear stset age_lung_cancer, fail(lung_cancer) stcox former_smoker smoker male urban1 rural estat ic
I want to fit all possible models that can be fitted with 1 variable at a time, 2 variables at a time, 3 variables at a time and so on.
How do I do this? This seems a simple thing to do but I'm struggling to figure this out.
Thanks
Andre

Comment