This computes confidence intervals for a given fixed effect parameter, based on the p_v
-based approximation
of the profile likelihood ratio for this parameter. The profiling is other all other fitted parameters: other fixed effects, as well as variances of random effects and spatial correlations if these were fitted.
# S3 method for HLfit
confint(object, parm, level=0.95, verbose=TRUE,...)
An object of class HLfit
, as returned by the fitting functions in spaMM
.
The name of a parameter to be fitted, or its position in the the object's $fixef
vector.
Valid names are those of the object's $fixef
;
The coverage of the interval;
whether to print the interval or not. As the function returns its more extensive results invisibly, this printing is the only visible output;
Additional arguments (maybe not used, but conforming to the generic definition of confint
).
A list including the confidence interval
for the target parameter, and the
fits lowerfit
and upperfit
giving the profile fits at the confidence bounds.
This is returned invisibly.
# NOT RUN {
<!-- % checked in test-confint.R -->
# }
# NOT RUN {
data("wafers")
wfit <- HLfit(y ~X1+(1|batch),family=Gamma(log),data=wafers,HLmethod="ML")
confint(wfit,"X1")
# }
Run the code above in your browser using DataLab