Computes the “uncorrected” sumofsquaresandproducts matrix divided by the number of observations.
1 2 3 4 5 6 7 8 9 10 11 12 13 
object 
a onesided model formula or an object coercible to a numeric matrix. 
formula 
a onesided model formula specifying the model matrix for
which raw moments are to be computed; note that a constant is included
if it is not explicitly suppressed by putting 
data 
an optional data frame containing the variables in the formula.
By default the variables are taken from the environment from which

subset 
an optional vector specifying a subset of observations to be used in computing moments. 
na.action 
a function that indicates what should happen when the data
contain 
contrasts 
an optional list. See the 
.
cov 
a covariance or correlation matrix. 
mean 
a vector of means. 
N 
the number of observations on which the covariances or correlations are based. 
sd 
an optional vector of standard deviations, to be given if 
x 
an object of class 
... 
arguments passed down. 
raw.moments
and cov2raw
return an object of class rawmoments
,
which is simply a matrix
with an attribute "N"
that contains the number of observations on
which the moments are based.
John Fox jfox@mcmaster.ca
sem
1 2 3 4 5 6 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.