# Example 1
Rpop <- matrix(.35, 6, 6)
diag(Rpop) <- 1
out <- Rmad(Rpop, MAD = .038, SEED = 123)
out$R |> round(3)
# E = mattix of model error values
E = Rpop - out$R
mean(abs(E[lower.tri(E, diag = FALSE)]))
Run the code above in your browser using DataLab