I have a linear regression model:
$Y~X_1+X_2+X_3+X_4+X_5+X_6+X_7+X_8+X_9$ and I need to create a function that find all possible models (e.g.
$Y = X_1+X_2+X_3+X_4$
$Y = X_2+X_3+X_4$
$Y = X_1+X_3+X_4+X_5+X_6$ etc) and then calculates each model's DIC values.
Can someone help me since I'm not experienced at programming?
dredgefunction in package MuMIn. $\endgroup$