Skip to content
Prev 155610 / 398502 Next

writing simple function through script

Its looking in environment(LgmFormula) for Xdata in order to evaluate
Xdata$Qe in the weights argument so just specify weights = Qe.

Alternately insert the following as the beginning of yo.
It creates a new local LgmFormula but with its environment set
to the current environment:

   environment(LgmFormula) <- environment()

See the Environment section of ?formula


On Wed, Sep 10, 2008 at 9:22 AM, Benoit Boulinguiez
<benoit.boulinguiez at ensc-rennes.fr> wrote: