Displaying 20 results from an estimated 30000 matches similar to: "changing the loss function in the logistic regression?"
2003 Nov 03
1
ROC with GLM?
Hello R-List:
Does anybody have code to optimize a logistic regression using ROC
curves? I've seen S+ code that does it but never in R.
Thanks.
__________________________________________________
You Rock! Your E-mail should, too. Visit Rock.com!
[[alternative HTML version deleted]]
2003 Sep 14
3
Re: Logistic Regression
Christoph Lehman had problems with seperated data in two-class logistic regression.
One useful little trick is to penalize the logistic regression using a quadratic penalty on the coefficients.
I am sure there are functions in the R contributed libraries to do this; otherwise it is easy to achieve via IRLS
using ridge regressions. Then even though the data are separated, the penalized
2008 Sep 27
10
FW: logistic regression
Sorry.
Let me try again then.
I am trying to find "significant" predictors" from a list of about 44
independent variables. So I started with all 44 variables and ran
drop1(sep22lr, test="Chisq")... and then dropped the highest p value from
the run. Then I reran the drop1.
Model:
MIN_Mstocked ~ ORG_CODE + BECLBL08 + PEM_SScat + SOIL_MST_1 +
SOIL_NUTR + cE + cN +
2004 Jan 25
3
warning associated with Logistic Regression
Hi All,
When I tried to do logistic regression (with high maximum number of
iterations) I got the following warning message
Warning message:
fitted probabilities numerically 0 or 1 occurred in: (if
(is.empty.model(mt)) glm.fit.null else glm.fit)(x = X, y = Y,
As I checked from the Archive R-Help mails, it seems that this happens when
the dataset exhibits complete separation. However, p-values
2006 Jan 31
1
warnings in glm (logistic regression)
Hello R users
I ran more than 100 logistic regression analyses. Some of the analyses gave
me this kind warning below.
###########################################################
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,
2009 Sep 25
1
Penalized Logistic Regression - Query
Dear R users,
Is there any package that I could use to perform Penalized Logistic
Regression (i.e. Ridge/Lasso regularization) including also an offset term
in the model (i.e. a variable with a known coefficient of 1 rather than an
estimated coefficient)? I couldn't find any package that would allow using
offset terms.
Any guidance will help.
Many thanks!
Axel.
[[alternative HTML version
2007 Jan 21
1
logistic regression model + Cross-Validation
Hi,
I am trying to cross-validate a logistic regression model.
I am using logistic regression model (lrm) of package Design.
f <- lrm( cy ~ x1 + x2, x=TRUE, y=TRUE)
val <- validate.lrm(f, method="cross", B=5)
My class cy has values 0 and 1.
"val" variable will give me indicators like slope and AUC. But, I also need
the vector of predicted values of class variable
2009 Aug 03
1
penalized logistic regression
Hi, R users,
Is there any package for penalized logistic regression with more than two
response classes? I read the manual for stepPlr, but it seems it's only for
binary case.
Thank you,
Annie
[[alternative HTML version deleted]]
2008 Dec 15
5
OT: (quasi-?) separation in a logistic GLM
Dear List,
Apologies for this off-topic post but it is R-related in the sense that
I am trying to understand what R is telling me with the data to hand.
ROC curves have recently been used to determine a dissimilarity
threshold for identifying whether two samples are from the same "type"
or not. Given the bashing that ROC curves get whenever anyone asks about
them on this list (and
2005 Mar 29
2
R-squared in Logistic Regression
Dear all,
How do I make R show the R-squared (deviance explained by the model) in
a logistic regression?
Below is how I write my syntax. Basically I want to investigate
density-dependence in parasitism of larvae. Note that in the end I
perform a F-test because the dispersion factor (residual deviance /
residual df) is significantly higher than 1. But how do I make R show
the
2009 Nov 09
1
Percentage effects in logistic regression
Dear ALL,
I'm trying to figure out what the percentage effects are in a logistic
regression. To be more clear, I'm not interested in the effect on y of a
1-unit increase in x, but on the percentage effect on y of a 1% increase in
x (in economics this is also often called an "elasticity").
For example, if my independent variables are in logs, the betas can be
directly
2006 Jan 30
4
Logistic regression model selection with overdispersed/autocorrelated data
I am creating habitat selection models for caribou and other species with
data collected from GPS collars. In my current situation the radio-collars
recorded the locations of 30 caribou every 6 hours. I am then comparing
resources used at caribou locations to random locations using logistic
regression (standard habitat analysis).
The data is therefore highly autocorrelated and this causes Type
2009 Sep 03
2
variable selection in logistic
Hi, R users,
What may be the best function in R to do variable selection in logistic
regression? I have the same number of variables as the number of samples,
and I want to select the best variablesfor prediction. Is there any function
doing forward selection followed by backward elimination in stepwise
logistic regression?
Thanks,
Annie
[[alternative HTML version deleted]]
2007 Aug 15
1
AIC and logLik for logistic regression in R and S-PLUS
Dear R users,
I am using 'R' version 2.2.1 and 'S-PLUS' version 6.0; and I loaded the
MASS library in 'S-PLUS'.
I am running a logistic regression using glm:
---------------------------------------------------------------------------
> mydata.glm<-glm(COMU~MeanPycUpT+MeanPycUpS, family=binomial, data=mydata)
2009 Sep 26
2
Design Package - Penalized Logistic Reg. - Query
Dear R experts,
The lrm function in the Design package can perform penalized (Ridge)
logistic regression. It is my understanding that the ridge solutions are not
equivalent under scaling of the inputs, so one normally standardizes the
inputs. Do you know if input standardization is done internally in lrm or I
would have to do it prior to applying this function.
Also, as I'm new in R (coming
2005 May 27
1
logistic regression
Hi
I am working on corpora of automatically recognized utterances, looking
for features that predict error in the hypothesis the recognizer is
proposing.
I am using the glm functions to do logistic regression. I do this type
of thing:
* logistic.model = glm(formula = similarity ~., family = binomial,
data = data)
and end up with a model:
> summary(logistic.model)
Call:
2012 Nov 08
3
Obtaining R-squared value in Logistic Regression
I do not see an R-squared value after preforming the glm regression.
Is there a separate command for this?
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/Obtaining-R-squared-value-in-Logistic-Regression-tp4648954.html
Sent from the R help mailing list archive at Nabble.com.
2008 Jan 05
1
Likelihood ratio test for proportional odds logistic regression
Hi,
I want to do a global likelihood ratio test for the proportional odds
logistic regression model and am unsure how to go about it. I am using
the polr() function in library(MASS).
1. Is the p-value from the likelihood ratio test obtained by
anova(fit1,fit2), where fit1 is the polr model with only the intercept
and fit2 is the full polr model (refer to example below)? So in the
case of the
2005 Aug 08
1
get the wald chi square in binary logistic regression
hello,
I work since a few time on R and i wanted to know how to obtain the Wald chi
square value when you make a binary logistic regression. In fact, i have the z
value and the signification but is there a script to see what is the value of
Wald chi square. You can see my model below,
Best regards,
S??verine Erhel
[Previously saved workspace restored]
> m3 = glm(reponse2 ~ form +
2011 Dec 21
3
Non-negativity constraints for logistic regression
Dear R users,
I am currently attempting to fit logistic regression models in R, where
the slopes should be restricted to positive values. Although I am aware
of the package nnls (which does the trick for linear regression models),
I did not find any solution for logistic regression. If there is any
package available for this purpose, I would be interested to know them.
Alternatively, I realize