[R] Error in maximum likelihood estimation.

2008-06-16 Thread Dong-hyun Oh
Dear UseRs, I wrote the following function to use MLE. - mlog <- function(theta, nx = 1, nz = 1, dt){ beta <- matrix(theta[1:(nx+1)], ncol = 1) delta <- matrix(theta[(nx+2):(nx+nz+1)], ncol = 1) sigma2 <- theta[nx+nz+2] gamma <- theta[nx+nz+3]

[R] Error in maximum likelihood estimation.

2008-06-16 Thread Dong-hyun Oh
Dear UseRs, I wrote the following function to use MLE. - mlog <- function(theta, nx = 1, nz = 1, dt){ beta <- matrix(theta[1:(nx+1)], ncol = 1) delta <- matrix(theta[(nx+2):(nx+nz+1)], ncol = 1) sigma2 <- theta[nx+nz+2] gamma <- theta[nx+nz+3]