Using brute force method, I have to find the maximum likelihood estimates where: we have to vary µ from 5 to 15 and σ from 0.5 to 1.5, both in increments of 0.1 This is what I have so far:
data = 8.453532, 10.025041,11.495339, 9.367600, 8.333229, 9.788753, 10.883344, 10.543059, 9.869095, 10.799819
mu = seq(5, 15, 0.1)
sigma = seq(0.5, 1.5, 0.1)
neglog <- array(dim=c(mu), dim=c(sigma))
Any idea how to continue the code?