Backtesting
Existe un problema al correr el código en r, este se presenta en la linea: "chart.Weights(msr_opt, main = "Pesos del MSR")"
El error es el siguiente:
Warning: Recycling array of length 1 in vector-array arithmetic is deprecated.
Use c() or as.vector() instead.
Warning: Recycling array of length 1 in array-vector arithmetic is deprecated.
Error in `[.xts`(w, row, column) : subscript out of bounds
Seria de gran ayuda una actualización al código, muchas gracias.
Existe un problema al correr el código en r, este se presenta en la linea: "chart.Weights(msr_opt, main = "Pesos del MSR")"
El error es el siguiente:
Warning: Recycling array of length 1 in vector-array arithmetic is deprecated.
Use c() or as.vector() instead.
Warning: Recycling array of length 1 in array-vector arithmetic is deprecated.
Use c() or as.vector() instead.
Error in `[.xts`(w, row, column) : subscript out of bounds
Seria de gran ayuda una actualización al código, muchas gracias.