Displaying 1 result from an estimated 1 matches for "294867".
Did you mean:
29467
2005 Nov 26
2
Double FOR
Hi,
I want to run through a formula several times with several different
variables (which are defined by independent vectors of equal length 10
elements). It looks like this:
function (m,s,y)
{
for (j in m){
for (k in s){
for (i in y){
DIC.hat<-sum(-2*((log(1/sqrt(2*pi*s^2))*exp((((y-m[j])/s)^2)/-2))))
}
}
}
DIC.hat
}
My problem is that R runs the three