search for: modesp

Displaying 2 results from an estimated 2 matches for "modesp".

Did you mean: modes
2001 Aug 21
2
Problem using GLM in a loop
...;,"~") formulavar_as.formula(paste(formulavar,endformula)) # # Modeling loop # while ((iter <= itercrit)| (vardev > devcrit)) { d_(response - mu)^2 modvar_glm(formula=formulavar,family=Gamma(link=log),data=data) sig <- predict(modvar,type="response") weights <- 1/sig modesp <- glm(formula=formula, family=gaussian,data=data,weights=weights) mu <- predict(modesp,type="response") devold <- dev dev <- modesp$deviance vardev <- (devold -dev)/devold iter <- iter + 1 } list(modesp=modesp, modvar=modvar, iter=iter, vardev=vardev) } This program e...
2001 Aug 21
0
Re: [R] Problem using GLM in a loop (fwd)
...formulavar,endformula)) > # > # Modeling loop > # > while ((iter <= itercrit)| (vardev > devcrit)) { > d_(response - mu)^2 > modvar_glm(formula=formulavar,family=Gamma(link=log),data=data) > sig <- predict(modvar,type="response") > weights <- 1/sig > modesp <- glm(formula=formula, > family=gaussian,data=data,weights=weights) > mu <- predict(modesp,type="response") > devold <- dev > dev <- modesp$deviance > vardev <- (devold -dev)/devold > iter <- iter + 1 > } > > list(modesp=modesp, modvar=modvar,...