Displaying 1 result from an estimated 1 matches for "betayz".
Did you mean:
beta'z
2010 Aug 12
0
Error: evaluation nested too deeply
...crease the epsilon
value (indicated in the code) , then I am getting this error
Error: evaluation nested too deeply: infinite recursion /
options(expressions=)?
any help please
y = 6.8;
w = 7.4;
z = 5.7;
muy = 7;
muw = 7;
muz = 6;
sigmay = 0.8;
sigmaz = 0.76;
sigmaw = 0.3;
betayx = 0.03;
betayz = 0.3;
betayw = 0.67
s = c(3.2,0.8)
em = function(W,s) {
a= 1/2*(1/s[2]^2+betayx^2/sigmay^2);
b=
(y-muy+betayx*s[1]-betayz*(z-muz)-betayw*(w-muw))*betayx/sigmay^2+s[1]/s[2]^2;
c=(1/2)*((y-muy+betayx*s[1]-betayz*(z-muz)-betayw*(w-muw))*betayx/sigmay^2+s[1]/s[2]^2)^2/(1/s[2]^2+betayx^2/sigmay^2)...