I have carried out four methods of Selection signals and want to do Decorrelated composite of multiple signals (DCMS). After running the command
DCMS(dfv, column.nums=1:ncol(dfv), subset=1:nrow(dfv), S=NULL, dfp, column.nums.p=1:ncol(dfp))
I am facing an error that reads,
Error in if (class(try(df.vars[subset, ], silent = TRUE)) == "try-error") stop("subset must contain valid indexes for choosing rows in dfv") : the condition has length > 1
Would like to know how to rectify this error. I have 4 columns and 116451 rows in both dfv and dfp.