Hello, I made a graph with random data, but my tutor asked me to do the following and I don't really know how
"You must do ten thousand times the randomization (in the graphs that you showed us you only did one). And in each randomization you must obtain the mean of the matrix and save it. That way you end up with ten thousand means. Graphs the histogram of the ten thousand medias and that's it, this method is called montecarlo, but it is modified "
I leave you the script of my random and my histograms.
Random database script.
datos<- read.csv("BASENUTRCPP.csv", row.names = "Symbol", sep = ","
datosRandcpp <- apply(datos, MARGIN = 2, FUN=permute
HCPPRD1 <- hist(x = e$Peso.T,xlim = c(-1,+1), xlab = "Coeficiente de correlacion", ylab = "Frecuencia", main = "Histograma de Correlacion_miRNAs-Macros_CPP_Peso Total_RD", col = "red")