Search results

  1. R

    Test Durbin Watson(error independence)

    Hello, I am solving an example of Design of experiments of a variable (DCA). It turns out that, on having applied logarithmic transformations, durbin watson throws a similar value, being the different graph library(lmtest) tb = data.frame("treat" = factor(x = c(rep(1:5, c(4,4,4,4,4)), labels...
  2. R

    completely random design, violate normality

    --------- DESIGN OF EXPERIMENTS ----- Hello I have a difficulty in the following case: normality (0.0001) constant variance independence of errors when I apply the Kolmogorov test corrected by Lilliefors (0.0001), then I reject H0 and this violates 1 test assumption. I have now been told that...
  3. R

    how to create a portfolio using xts time series

    Hello, I have already corrected the stationary of my elements with diff, but to analyze the VaR (), CVaR (). It is necessary to create a portfolio, I have seen many packages that have left me confused. How is the procedure to create a crypto portfolio? that is I must assign all the columns of...
  4. R

    a function created does not work

    Hello, I had created a function and I aimed to verify if it complies with certain data and if it was, then it is stored in another variable. data = c(12, 20, 11, 16, 18, 32, 22 , 8) class = function(N){} tabla1= c(1:8) for (i in length(N)){ if (data[i]<21.78){ table1[i]= data[i]...