powered by
This is a utility function for maxEM
maxEM
mstep(x, theta, phi)
a zero-one indicator matrix whose rows correspond to unique lengths with rownames indicating those lengths
a vector of the abundance estimates. length(theta)==ncol(x)
length(theta)==ncol(x)
a vector of the probabilities of sonicant lengths. length(phi)==nrow(x)
length(phi)==nrow(x)
a vector like the input theta
theta
The M-step for theta is computed. Probably, there is no need to use this function directly, but just in case it is here.
# NOT RUN { mat <- diag(10) mat[ ,10 ] <- 1.0 phi1 <- prop.table( rep(1,10)) theta1 <- 1:10 sonicLength:::mstep( mat, theta1,phi1) # }
Run the code above in your browser using DataLab