rsm.null: Fit an Empty Regression-Scale Model

Description Usage Arguments Details Value See Also

View source: R/marg.R


Fits a rsm model with empty model matrix.


rsm.null(X = NULL, Y, offset, family, dispersion, score.dispersion, maxit, 
         epsilon, trace, ...)



defaults to NULL.


the response vector.


either NULL or TRUE. If NULL, the MLE of the scale parameter is returned. If Huber's least favourable distribution is used and dispersion is TRUE, the MAD is computed and the scale parameter fixed to this value in subsequent calculations.


must default to NULL.


optional offset added to the linear predictor.


a family.rsm object, i.e. a list of functions and expressions characterizing the error distribution. Families supported are gaussian, student (Student's t), extreme (Gumbel or extreme value), logistic, logWeibull, logExponential, logRayleigh and Huber (Huber's least favourable). Users can construct their own families, as long as they have components compatible with those given in rsm.distributions. The demonstration file ‘margdemo.R’ that ships with the package shows how to create a new generator function.


maximum number of iterations allowed.


convergence threshold.


if TRUE, iterations details are printed during execution.


not used, but do absorb any redundant argument.


The rsm.null function is called internally by the rsm routine to do the actual model fitting in case of an empty model. It is not intended to be used directly by the user. As no weights argument is available, the response Y and the model matrix X must already include the weights if weighting is desired.


an object which is a subset of a rsm object.

See Also

rsm, rsm.surv,, rsm.object, rsm.families

hoa documentation built on May 20, 2017, 1:07 a.m.
Search within the hoa package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.