Displaying 20 results from an estimated 10000 matches similar to: "Help with Logit Model"
2009 Aug 06
1
Logit Model... GLM or GEE or ??
Posted about this earlier. Didn't receive any response
But, some further research leads me to believe that MAYBE a GLMM or a
GEE function will do what I need.
Hello,
I have a bit of a tricky puzzle with trying to implement a logit model
as described in a paper.
The particular paper is on horseracing and they explain a model that is
a logit trained "per race", yet somehow the
2009 Aug 25
1
Clogit or LRM?
Hello
I believe that I'm getting very close in my modeling application.
I've come across a challenge that I am unable to solve and would really
appreciate the group's opinion.
I've been using the val.prob function from the Design library (Thanks
Frank!!) to both evaluate and visualize my model.
From the scores and graph, it appears as my model is very accurate in
2011 Aug 26
2
How to find the accuracy of the predicted glm model with family = binomial (link = logit)
Hi All,
When modeling with glm and family = binomial (link = logit) and response values of 0 and 1, I get the predicted probabilities of assigning to my class one, then I would like to compare it with my vector y which does have the original labels. How should I change the probabilities into values of zero and 1 and then compare it with my vector y to find out about the accuracy of my
2012 Apr 12
1
Seeking help with LOGIT model
Dear all, I am fitting a LOGIT model on this Data...........
Data <- structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1,
0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1,
0, 1, 1, 0, 1, 0, 47, 58, 82, 100, 222, 164, 161, 70, 219, 81,
209, 182, 185, 104, 126, 192, 95, 245, 97, 177, 125, 56, 85,
199, 298, 145, 78, 144, 178, 146, 132, 98, 120, 148, 123, 282,
79, 34, 104,
2005 Nov 21
2
Multinomial Nested Logit package in R?
Dear R-Help,
I'm hoping to find a Multinomial Nested Logit package in R. It would
be great to find something analogous to "PROC MDC" in SAS:
> The MDC (Multinomial Discrete Choice) procedure analyzes models
> where the
> choice set consists of multiple alternatives. This procedure
> supports conditional logit,
> mixed logit, heteroscedastic extreme value,
2012 Aug 13
3
Using the effects package to plot logit probabilities
I'm trying to run a logit model and plot the probability curve for a number
of the important predictors. I'm trying to do this
with the Effects package.
df=data.frame(income=c(5,5,3,3,6,5),
won=c(0,0,1,1,1,0),
age=c(18,18,23,50,19,39),
home=c(0,0,1,0,0,1))
str(df)
md1 = glm(factor(won) ~ income + age + home,
data=df,
2007 Sep 20
1
Conditional Logit and Mixed Logit
Hello,
Could anybody provide me with codes (procedure) how to obtain Conditional
Logit (McFadden) and Mixed Logit (say, assuming normal distribution)
estimates in R?
Thanks,
David U.
--
View this message in context: http://www.nabble.com/Conditional-Logit-and-Mixed-Logit-tf4489238.html#a12802959
Sent from the R help mailing list archive at Nabble.com.
2009 Jul 16
1
Help with Conditional Logit
Hello,
I'm brand new to using R. (I've been using Rapid Miner, but would like
to move over to R since it gives me much more functionality.)
I'm trying to learn how to do a conditional logit model.
My data has one dependent variable, 2 independent variables and a
"group" variable.
example:
class v1 v2 group
"sick" .3 .7 1
"well"
2010 Mar 29
1
Question about 'logit' and 'mlogit' in Zelig
I'm running a multinomial logit in R using the Zelig packages. According to str(trade962a), my dependent variable is a factor with three levels. When I run the multinomial logit I get an error message. However, when I run 'model=logit' it works fine. any ideas on whats wrong?
## MULTINOMIAL LOGIT
anes96two <- zelig(trade962a ~ age962 + education962 + personal962 + economy962 +
2008 Jan 25
1
Logit Regressions, Clustering etc
Hi
I am carrying out some logit regressions and want to (a) make sure I'm
taking the right approach and (b) work out how to carry out some additional
analysis. So, to carry out a logit regression where the dependent variable
is a factor db, I use something like:
res1_l <- glm(formula = db ~ y1 +
+ y5, family = binomial(link = "logit"))
summary(res1_l)
...which is, I hope
2009 Sep 22
2
Pull Coefficients from MCMCpack models
Hi,
I've been testing some models with the MCMCpack library.
I can run the process and get a nice model "object". I can easily see
the summary and even plot it.
I can't seem to figure out how to:
1) Access the final coefficients in the model
2) Turn the coefficients into a model so I can then run predictions
using them.
A summary command will SHOW Me the coefficients, but
2012 Jan 15
1
Need help interpreting the logit regression function
Hello R community,
I have a question about the logistic regression function.
Specifically, when the predictor variable has not just 0's and 1's,
but also fractional values (between zero and one). I get a warning
when I use the "glm(formula = ... , family = binomial(link =
"logit"))" which says:
"In eval(expr, envir, enclos) : non-integer #successes in a binomial
2005 Nov 28
3
glm: quasi models with logit link function and binary data
# Hello R Users,
#
# I would like to fit a glm model with quasi family and
# logistical link function, but this does not seam to work
# with binary data.
#
# Please don't suggest to use the quasibinomial family. This
# works out, but when applied to the true data, the
# variance function does not seams to be
# appropriate.
#
# I couldn't see in the
# theory why this does not work.
# Is
2002 May 06
2
A logit question?
Hello dear r-gurus!
I have a question about the logit-model. I think I have misunderstood
something and I'm trying to find a bug from my code or even better from my
head. Any help is appreciated.
The question is shortly: why I'm not having same coefficients from the
logit-regression when using a link-function and an explicite transformation
of the dependent. Below some details.
I'm
2005 Aug 05
1
question regarding logit regression using glm
I got the following warning messages when I did a
binomial logit regression using glm():
Warning messages:
1: Algorithm did not converge in: glm.fit(x = X, y =
Y, weights = weights, start = start, etastart =
etastart,
2: fitted probabilities numerically 0 or 1 occurred
in: glm.fit(x = X, y = Y, weights = weights, start =
start, etastart = etastart,
Can some one share your thoughts on how to
2007 Jul 19
2
multinomial logit estimation
Good morning,
I'd like to estimate a simple multinomial logit model in R (not a McFadden conditional logit). For instance, I'd like to estimate the probability of someone having one of eight titles in a company with the independent variables being the company characteristics. A binary logit is well documented. What about the multinomial?
Thanks,
Walt Paczkowski
2011 Feb 21
1
fitting logit to data
Hello,
I'd like to fit a logit function to my data.
The data is distributed like a logit (like in this plot on wikipedia http://en.wikipedia.org/wiki/File:Logit.png)
but the values on the x-axis are not between 0 and 1.
I don't think using a glm is the solution because I simply want to
infer the parameters of the logit function
(offset, compression, slope...), so I can apply it to all
2012 Jul 05
2
Plotting the probability curve from a logit model with 10 predictors
I have a logit model with about 10 predictors and I am trying to plot the
probability curve for the model.
Y=1 = 1 / 1+e^-z where z=B0 + B1X1 + ... + BnXi
If the model had only one predictor, I know to do something like below.
mod1 = glm(factor(won) ~ as.numeric(bid), data=mydat,
family=binomial(link="logit"))
all.x <- expand.grid(won=unique(won), bid=unique(bid))
y.hat.new
2005 Jul 15
2
glm(family=binomial(link=logit))
Hi
I am trying to make glm() work to analyze a toy logit system.
I have a dataframe with x and y independent variables. I have
L=1+x-y (ie coefficients 1,1,-1)
then if I have a logit relation with L=log(p/(1-p)),
p=1/(1+exp(L)).
If I interpret "p" as the probability of success in a Bernouilli
trial, and I can observe the result (0 for "no", 1 for
2012 Oct 05
1
glm (probit/logit) optimizer
Dear all,
I am using glm function in order to estimate a logit model i.e. glm(Y ~
data[,2] + data[,3], family = binomial(link = "logit")).
I also created a function that estimates logit model and I would like it to
compare it with the glm function.
So, does anyone know what optimizer or optimization method glm uses in order
to derive the result?
Thank you
Dimitris
--
View this