Usage
mst.dev(param, X, y, freq, fixed.df=NA, trace=FALSE)
mst.dev.grad(param, X, y, freq, fixed.df=NA, trace=FALSE)
st.dev.fixed(free.param, X, y, freq, trace=FALSE, fixed.comp=NA, fixed.values=NA)
Arguments
param
a numeric vector of parameter values.
X
a matrix of explanatory variables; must have col(X)
equal to
length(y)
. Missing values (NA
) are not allowed.
If X
is missing, a one-column matrix of 1's is created.
y
a numeric vector. Missing values (NA
s) are not allowed.
freq
a vector of frequencies.
trace
logical value which controls printing of the algorithm convergence.
If trace=TRUE
, details are printed. Default value is FALSE
.
free.param
a vector of suitably re-parametrized parameters, not to be kept fixed during
iteration.
fixed.comp
a vector containing the subset of the parameters for which the
profile log-likelihood function is required; it can be of length 1 or 2.
fixed.values
a numeric vector of values or a matrix with two columns, giving the
range spanned by the selected parameters.
fixed.df
a scalar value contaning the degrees of freedom (df), if these must
be taked as fixed, or NA
(deafult value) if df is a parameter
to be estimated.