search for: regimp

Displaying 1 result from an estimated 1 matches for "regimp".

Did you mean: regime
2012 Mar 03
1
Problem running stepAIC within a function.
Hi I need to a function that automatically fits a regression to data, using the stepAIC. I've ran the code manually and it works fine. However, when I run the function on the same data, the following error occurs: Problem in regimp(fullsim = simt, fullsim1 = simt1,..: Length of (weights) (variable 4) is 4271 != length of others (4278) I got the function to output the length of the dataset and weights, which were both 4271. When I remove "weights=w" from the code. StepAIC start's running, but then I get the fo...