Last chance! 50% off unlimited learning
Sale ends in
gamm
works by transforming a GAMM into something
that can be estimated by lme
, but this involves creating new
variables, the names of which should not clash with the names of other
variables on which the model depends. This simple service routine checks a
suggested name against a list of those in use, and if neccesary modifies it
so that there is no clash.
new.name(proposed,old.names)
a suggested name
An array of names that must not be duplicated
A name that is not in old.names
.
# NOT RUN {
require(mgcv)
old <- c("a","tuba","is","tubby")
new.name("tubby",old)
# }
Run the code above in your browser using DataLab