f0 optimization routine
getf0(
y,
spt,
ySptIndex,
sptFreq,
sampprobs,
mu,
mu0,
f0Start,
thStart,
thetaControl = theta.control(),
f0Control = f0.control(),
trace = FALSE
)A list containing the following:
f0 Updated values.
llik Updated log-likelihood.
th Updated list returned from the getTheta function.
conv Convergence indicator.
iter Number of iterations until convergence.
nhalf The number of half steps taken on the last iteration if the
initial BFGS update did not improve the log-likelihood.
score.log Score function with respect to log(f0) at convergence.
info.log Information matrix with respect to log(f0) at convergence.
Vector of response values.
Vector of unique observed support points in the response.
Index of each y value within spt.
Vector containing frequency of each spt value.
Optional matrix of sampling probabilities.
Fitted mean for each observation. Only used if sampprobs=NULL.
Mean constraing for f0.
Starting f0 values. (Typically the estimate from the previous iteration.)
Starting theta values. Needs to be a list of values matching
the output of the getTheta function.
A "thetaControl" object returned from the theta.control
function.
An "f0Control" object returned from the f0.control
function.
trace Logical. If TRUE, then progress is printed to terminal at each iteration.