Displaying 2 results from an estimated 2 matches for "glogit".
Did you mean:
logit
2005 Jul 15
2
problems with nls function
Hello,
I was trying to fit a generalized logistic curve and my code for testing
if the function "nls" is working is like this
#######
#define the generalized logistic curve function
glogit=function(a, b, c, m, t, x)
{
tmp = 1/(1 + t * exp(-b * (x - m)))^(1/t)
model.func = a + tmp * c
#define the gradient vector
Z = cbind(1, c*(x-m)*tmp^(t+1)*exp(-b*(x-m)), tmp, -c*b*exp(-b*(x-m)) *temp^(t+1), -c*tmp*(1/t)* (log(tmp) + tmp^(-t) * exp(-b(x-m))))
attr(model.func,"gradient&quo...
2008 Jan 08
3
GAM, GLM, Logit, infinite or missing values in 'x'
...her
option.
My glm and gam models are below. Any suggestions are very much
appreciated.
Best,
Anders
> form.logit
outbinary ~ a_norm_total2 + I(a_norm_total2^2) + prop + igoprop +
gpconc + ter + open + igototal + cinc.nmc + demsOnumstat +
diversity + cincOter + polity2
> form.glogit
outbinary ~ s(a_norm_total2) + s(prop) + s(prop, by = a_norm_total2) +
igoprop + gpconc + ter + open + igototal + cinc.nmc + demsOnumstat +
diversity + cincOter + polity2
GAM error message:
avt.2glogit<-gam(form.glogit, data=dataS, na.action=na.omit,family=binomial)
Error in eigen(hes...