Skip to content
Prev 34216 / 63424 Next

model.matrix troubles with AlgDesign

Hi Heather, 

thanks, I would be able to add the variable y <- 1:nrow(aus), I would even
be able to omit these. 
What concerns me is the fact that the presence of function
model.matrix.formula in package AlgDesign will stop model.matrix from
working as expected in further situations that I have not spotted yet. 

For the future development of package DoE.wrapper, I would like to include
AlgDesign in the Depends field, and that would mean that the package would
then stop user functions with perfectly valid code from working correctly.
So I would like to find a way to modify model.matrix.formula or
expand.formula from AlgDesign so that AlgDesign stops messing up usages of
model.matrix in other contexts. I think that the solution may perhaps lie in
assigning the right environment to frml in expand.formula, but I am not
familiar enough with assigning environments to know what the right strategy
would be.

Any suggestions ?

Regards, 
Ulrike
Heather Turner wrote: