Internal function: indeMLE
An n by T data matrix (NA allowed) with \(z[t]\) as the t-th column.
An n by K matrix of basis function values with
each column being a basis function taken values at loc
.
An n by n diagonal matrix.
An integer for the maximum number of iterations.
A numeric for average tolerance.
A logic.
An n by n matrix
A numeric.
A logic. Print a useful information.
A list.