Displaying 20 results from an estimated 400 matches similar to: "question regarding logit regression using glm"
2010 Mar 08
1
error_hier.part
Hi everyone,
BEGINNER question:
I get the error below when running hier.part. Probably i´m doing
something wrong.
Error in glm.fit(x = X, y = Y, weights = weights, start = start, etastart =
etastart, :
object 'fit' not found
In addition: Warning messages:
1: In glm.fit(x = X, y = Y, weights = weights, start = start, etastart =
etastart, :
no observations informative at iteration 1
2008 May 12
4
Several questions about MCMClogit
Hello everybody,
I'm new to MCMClogit. I'm trying to use MCMClogit to fit a logistic
regression model but I got some warnings I can't understand.
My input data X is 32(tissue sample)*20(genes) matrix, each element in this
matrix corresponds to the expression value of one particular gene in one of
32 samples. And the Y presents the corresponding classes (0-non cancer,
1-cancer)
2010 Apr 26
2
Unexpected warnings from summary() on mcmc.list objects
I am trying to get summary statistics from WinBUGS/JAGS output in the
form of mcmc.list objects, using the summary() function. However, I
get odd warning messages:
Warning messages:
1: In glm.fit(x = X, y = Y, weights = weights, start = start, etastart
= etastart, :
algorithm did not converge
2: In glm.fit(x = X, y = Y, weights = weights, start = start, etastart
= etastart, :
algorithm did
2006 Aug 31
3
what's wrong with my simulation programs on logistic regression
Dear friends,
I'm doing a simulation on logistic regression model, but the programs can't
work well,please help me to correct it and give some suggestions.
My programs:
data<-matrix(rnorm(400),ncol=8) #sample size is 50
data<-data.frame(data)
names(data)<-c(paste("x",1:8,sep="")) #8 independent variables,x1-x8;
#logistic regression model is
2006 Jan 15
1
problems with glm
Dear R users,
I am having some problems with glm. The first is an error message "subscript out of bounds". The second is the fact that reasonable starting values are not accepted by the function.
To be more specific, here is an example:
> success <- c(13,12,11,14,14,11,13,11,12)
> failure <- c(0,0,0,0,0,0,0,2,2)
> predictor <- c(0,80*5^(0:7))
>
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,
2005 Jun 16
1
logistic regression - using polys and products of features
Hi
I can get all my features by doing this:
> logistic.model = glm(similarity ~ ., family=binomial, data =
cData[3001:3800,])
I can get the product of all my features by this:
logistic.model = glm(similarity ~ . ^ 2, family=binomial, data =
cData[3001:3800,])
I don't seem to be able to get polys by doing this:
logistic.model = glm(similarity ~ poly(.,2), family=binomial, data
2005 Jan 28
3
GLM fitting
DeaR R-useRs,
I'm trying to fit a logist model with these data:
> dati
y x
1 1 37
2 1 35
3 1 33
4 1 40
5 1 45
6 1 41
7 1 42
8 0 20
9 0 21
10 0 25
11 0 27
12 0 29
13 0 18
I use glm(), having this output:
> g<-glm(y~x,family=binomial,data=dati)
Warning messages:
1: Algorithm did not converge in: glm.fit(x = X, y =
Y, weights = weights, start = start, etastart =
2009 Mar 27
1
deleting/removing previous warning message in loop
Hello R Users,
I am having difficulty deleting the last warning message in a loop so that the only warning that is produced is that from the most recent line of code. I have tried options(warn=1), rm(last.warning), and resetting the last.warning using something like:
> warning("Resetting warning message")
This problem has been addressed in a previous listserve string,
2005 Jul 02
2
Is it possible to use glm() with 30 observations?
I have a very simple problem. When using glm to fit
binary logistic regression model, sometimes I receive
the following warning:
Warning messages:
1: fitted probabilities numerically 0 or 1 occurred
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,
2006 Nov 12
2
segfault 'memory not mapped', dual core problem?
I encountered a segfault running glm() and wonder if it could have
something to do with the way memory is handled in a dual core system
(which I just set up). I'm running R-base-2.4.0-1, installed from the
SuSE 10.1 x86_64 rpm (obtained from CRAN). (My processor is an AMD
Athlon 64 x2 4800+).
The error and traceback are
*** caught segfault ***
address 0x8001326f2b, cause 'memory not
2002 Feb 27
1
Bug in glm.fit? (PR#1331)
G'day all,
I had a look at the GLM code of R (1.4.1) and I believe that there are
problems with the function "glm.fit" that may bite in rare
circumstances. Note, I have no data set with which I ran into
trouble. This report is solely based on having a look at the code.
Below I append a listing of the glm.fit function as produced by my
system. I have added line numbers so that I
2009 Feb 14
1
glm problem
Hello,
I have a weird problem here. What I want to do is that I need to draw 1000
samples from a matrix, and use glm on them.
when I used this command, it runs without the problem
> qdata.glm = glm(X258 ~ ., family = binomial, data =
q2data[sample(dim(q2data)[1], 1000), ])
but if I drew the sample first and run glm() on that sample, it gave a
warning.
> qdata.sample =
2006 Feb 17
2
Something changed and glm(..., family=binomial) doesn't work now
I ran logistic regression models last week using glm
(...,family=binomial) and got a set of results. Since then I have
loaded the Epi package for ROC analysis. Now when I run those same
models I get completely different results, with most being:
Warning message:
fitted probabilities numerically 0 or 1 occurred in: glm.fit(x = X, y
= Y, weights = weights, start = start, etastart = etastart,
2009 Dec 17
2
segfault in glm.fit (PR#14154)
Bug summary:
glm() causes a segfault if the argument 'data'
is a data frame with more than 16384 rows.
Bug demonstration:
-------input ---------------
N <- 16400
df <- data.frame(x=runif(N, min=1,max=2),y=rpois(N, 2))
glm(y ~ x, family=poisson, data=df)
------ output ---------------
*** caught segfault ***
address (nil),
2005 Apr 13
1
logistic regression weights problem
Hi All,
I have a problem with weighted logistic regression. I have a number of
SNPs and a case/control scenario, but not all genotypes are as
"guaranteed" as others, so I am using weights to downsample the
importance of individuals whose genotype has been heavily "inferred".
My data is quite big, but with a dummy example:
> status <- c(1,1,1,0,0)
> SNPs <-
2006 Apr 11
1
gaussian family change suggestion
Hi,
Currently the `gaussian' family's initialization code signals an error if
any response data are zero or negative and a log link is used. Given that
zero or negative response data are perfectly legitimate under the GLM
fitted using `gaussian("log")', this seems a bit unsatisfactory. Might
it be worth changing it?
The current offending code from `gaussian' is:
2004 Nov 11
1
glm.fit warning message
I am feeling my way in the use of GLM's and have come across a warning whilst manually simplifying a model with interaction terms, removing terms one at a time from the maximum model (R1.9.0).
> model<-glm(midpnts~(AET+tempave+tempvar+MDE+sqrtarea)^2+Lat,family=poisson,weights=weightS)
> model2<-update(model,~.-tempave:tempvar)
Warning message:
fitted rates numerically 0
2003 Nov 06
1
for help about R--probit
Not real data. It was gererated randomly. The original codes are the following:
par(mfrow=c(2,1))
n <- 500
#########################
#DATA GENERATING PROCESS#
#########################
x1 <- rnorm(n,0,1)
x2 <- rchisq(n,df=3,ncp=0)-3
sigma <- 1
u1 <- rnorm(n,0,sigma)
ylatent1 <-x1+x2+u1
y1 <- (ylatent1 >=0) # create the binary indicator
#######################
#THE
2007 Dec 29
1
COMPAR.GEE error with logistic model
Hello,
I am trying to run the APE program COMPAR.GEE with a model containing a
categorical response variable and a mixture of continuous and categorical
independent variables. The model runs when I have categorical (binary)
response and two continuous independent variables (VAR1 and VAR2), but when
I include a categorical (binary) independent variable (VAR3), I receive the
following output with