| linear.hypothesis {car} | R Documentation |
Generic function for testing a linear hypothesis, and methods
for linear models, generalized linear models, multivariate linear
models, and other models that have methods for coef and vcov.
linear.hypothesis(model, ...)
lht(model, ...)
## Default S3 method:
linear.hypothesis(model, hypothesis.matrix, rhs=NULL,
test=c("Chisq", "F"), vcov.=NULL, verbose=FALSE, ...)
## S3 method for class 'lm':
linear.hypothesis(model, hypothesis.matrix, rhs=NULL,
test=c("F", "Chisq"), vcov.=NULL, white.adjust=FALSE, ...)
## S3 method for class 'glm':
linear.hypothesis(model, ...)
## S3 method for class 'mlm':
linear.hypothesis(model, hypothesis.matrix, rhs=NULL, SSPE, V,
test, idata, icontrasts=c("contr.sum", "contr.poly"), idesign, iterms,
P=NULL, title="", verbose=FALSE, ...)
## S3 method for class 'linear.hypothesis.mlm':
print(x, SSP=TRUE, SSPE=SSP,
digits=unlist(options("digits")), ...)
model |
fitted model object. The default method works for models
for which the estimated parameters can be retrieved by coef and
the corresponding estimated covariance matrix by vcov. See the
Details for more information. |
hypothesis.matrix |
matrix (or vector) giving linear combinations of coefficients by rows, or a character vector giving the hypothesis in symbolic form (see Details). |
rhs |
right-hand-side vector for hypothesis, with as many entries as
rows in the hypothesis matrix; can be omitted, in which case it defaults
to a vector of zeroes. For a multivariate linear model, rhs is a
matrix, defaulting to 0. |
idata |
an optional data frame giving a factor or factors defining the intra-subject model for multivariate repeated-measures data. See Details for an explanation of the intra-subject design and for further explanation of the other arguments relating to intra-subject factors. |
icontrasts |
names of contrast-generating functions to be applied by default to factors and ordered factors, respectively, in the within-subject ``data''; the contrasts must produce an intra-subject model matrix in which different terms are orthogonal. |
idesign |
a one-sided model formula using the ``data'' in idata and
specifying the intra-subject design. |
iterms |
the quoted name of a term, or a vector of quoted names of terms, in the intra-subject design to be tested. |
P |
transformation matrix to be applied to the repeated measures in multivariate repeated-measures data; r> |
The Migration data frame has 90 rows and 8 columns.
Migration
This data frame contains the following columns:
ALTA, Alberta;
BC, British Columbia;
MAN, Manitoba;
NB, New Brunswick;
NFLD, New Foundland;
NS, Nova Scotia;
ONT, Ontario;
PEI, Prince Edward Island;
QUE, Quebec;
SASK, Saskatchewan.
ALTA, Alberta;
BC, British Columbia;
MAN, Manitoba;
NB, New Brunswick;
NFLD, New Foundland;
NS, Nova Scotia;
ONT, Ontario;
PEI, Prince Edward Island;
QUE, Quebec;
SASK, Saskatchewan.
There is one record in the data file for each migration stream. You can average the 1966 and 1971 population figures for each of the source and destination provinces.
Canada (1962) Map. Department of Mines and Technical Surveys.
Canada (1971) Census of Canada. Statistics Canada, Vol. 1, Part 2 [Table 32].
Canada (1972) Canada Year Book. Statistics Canada [p. 1369].
Fox, J. (1997) Applied Regression, Linear Models, and Related Methods. Sage.