echin2
varb
indicate nodes of the graphical model to which
the corresponding elements of the response vector resp
belong.
This is the typical reshape
function. For each individual, there are several response variables.
All response variables are combined in one vector resp
.
The variable varb
indicates which id
indicates which individual
the number was for. The levels of varb
, which are the names
of the These data are complicated by the experiment being done in two parts.
Plants start their life indoors in a growth chamber. The predictor
variable flat
only makes sense during this time in which three
response variables lds1
, lds2
, and lds3
are observed.
After three months in the growth chamber, the plants (if they
survived, i. e., if lds3 == 1
) were planted in an experimental
field plot outdoors. The variables row
and posi
only make
sense during this time in which all of the rest of the response variables
are observed. Because of certain predictor variables only making sense
with respect to certain components of the response vector, the R formula
mini-language is unable to cope, and model matrices must be constructed
"by hand".
Echinacea angustifolia is native to North American tallgrass prairie,
which was once extensive but now exists only in isolated remnants.
To evaluate the effects of different mating regimes on the fitness of
resulting progeny, crosses were conducted to produce progeny of (a) mates
from different remnants, (b) mates chosen at random from the same remnant,
and (c) mates known to share maternal parent. These three categories are
the three levels of crosstype
.