Displaying 1 result from an estimated 1 matches for "fit_update".
Did you mean:
fb_update
2002 Jun 07
2
Hope fo help - functions, fits and for cycles
...construct a function that makes a basic fit,
then updates with each variable from GG vector.
trial_function(mydata,formule,expl,distr="binomial")
{
n_length(expl)
fit.low_glm(formule, family = distr, data = mydata,
na.action = na.exclude)
for (j in 1:n)
{
fit_update(fit.low,~.+ mydata[,expl[j]])
print(mydata[,expl[j]])
}
}
result<-
trial(mydata=dataset,formule=response~gender+age,exp
l=GG,distr="gaussian")
# when update is off, no error message is printed and
the function works all right
# if I untag the update, I get...