I have a function that work without any problem when I use dnorm with specifying the mean and the variance manually. I tried to use for loop with
dnorm
for