search for: wslog

Displaying 1 result from an estimated 1 matches for "wslog".

Did you mean: slog
2005 Jun 10
1
Sum up the values of a function
...sAttack12(z,i=2)+logwsAttack12(z,i=3)+logwsAttack12(z,i=4)+logwsAttack12(z,i=5)+logwsAttack12(z,i=6)) ws37sum <- function (z) (logwsAttack37(z,i=1)+logwsAttack37(z,i=2)+logwsAttack37(z,i=3)+logwsAttack37(z,i=4)+logwsAttack37(z,i=5)+logwsAttack37(z,i=6)+logwsAttack37(z,i=7)+logwsAttack37(z,i=8)) wsLOG <- function (z) (ws12sum(z) + ws37sum(z)) LogSum <- function (z) (-sum(wsLOG(z))) SP <- c(0.16, 0.10, 44, 0.80, 46) out <- nlm (LogSum, p=SP) out For explanation: x1[i], x2[i], m1[i], m2[i], n1[i], n2[i] are given data and z[1:5] are my estimates. My problem is that I have more than o...