search for: sic3

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

Did you mean: sic
2012 Mar 03
1
Problem running stepAIC within a function.
...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 following error: Problem in stepAIC(lm(new ~ -1 + SIC3 + emp, data =..: number of rows in use has changed: remove missing values? I checked the data for missing values and there are none. I can't understand why the code works fine on it's own, but not in a function. -------------------------------- #Mean imp and results regimp <- fun...