Displaying 1 result from an estimated 1 matches for "fullsim2".
Did you mean:
fullsim
2012 Mar 03
1
Problem running stepAIC within a function.
...r 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 <-
function(fullsim,fullsim1,fullsim2,reps=75,opt=0,rand=0,weight=0,match=0){
results <-
data.frame(RIB=rep(0,reps),ARIB=rep(0,reps),Conf=rep(0,reps),Dks=rep(0,reps),PL=rep(0,reps),REL=rep(0,reps),VARS=rep(0,reps))
#run simulations of missing data and impute on each
#do reps
for (j in 1:reps){
#bind data
alldata <- cbind(...