rm — Repeated measures modelRepeatedMeasuresModel object

tnew — New datatable used to create rm (default) | table

New data including the values of the response variables and
the between-subject factors used as predictors in the repeated measures
model, rm, specified as a table. tnew must
contain all of the between-subject factors used to create rm.

Examples

Randomly Generate New Response Values

The column vector species consists of iris flowers of three different species: setosa, versicolor, and virginica. The double matrix meas consists of four types of measurements on the flowers: the length and width of sepals and petals in centimeters, respectively.

Randomly Generate Response Values Using New Data

The table between includes the between-subject variables age, IQ, group, gender, and eight repeated measures through as responses. The table within includes the within-subject variables and . This is simulated data.

Fit a repeated measures model, where the repeated measures through are the responses, and age, IQ, group, gender, and the group-gender interaction are the predictor variables. Also specify the within-subject design matrix.