| patt.worth {prefmod} | R Documentation |
Worth parameter are calculated from the results of a pattern model fit.
The resulting estimates for all groups are based on the subject covariates as
specified in the model formula (formel) of a pattern model.
patt.worth(obj, obj.names = NULL)
obj |
Object of class pattMod obtained from pattern model fit. |
obj.names |
names for the objects, for repeated measurement models just the names of objects for the first time point |
patt.worth returns an object of class pattW, which is in fact the matrix .
of worth parameters for all groups appropriately labelled.
The function print (i.e., print.pattW) can be used to print the matrix, the function
plotworth gives a plot of the estimates. The matrix
itself can be obtained by using unclass.
Reinhold Hatzinger
## fit only first three objects with SEX effect
data(cemspc)
m2<-pattPC.fit(cemspc, nitems=3, formel=~SEX, elim=~SEX, undec=TRUE)
## calculate and print worth parameters
m2worth<-patt.worth(m2)
m2worth
## display the transpose of the worth parameter matrix
t(unclass(m2worth))