I am familiar with the concept of p-hacking for statistical tests, but does p-hacking apply to model building? Say you are trying many different linear models with a variety of variables, interactions, splines, polynomials, etc. What about trying different types of models, like starting with a basic linear regression model and then trying a lasso regression?
If p-hacking does apply, how to go about mitigating it?