Displaying 20 results from an estimated 60000 matches similar to: "Bug in help for profile; more general problem? (PR#900)"
2009 Dec 07
5
confint for glm (general linear model)
Hi,
I have a glm gives summary as follows,
Estimate Std. Error z value Pr(>|z|)
(Intercept) -2.03693352 1.449574526 -1.405194 0.159963578
A 0.01093048 0.006446256 1.695633 0.089955471
N 0.41060119 0.224860819 1.826024 0.067846690
S -0.20651005 0.067698863 -3.050421 0.002285206
then I use confint(k.glm)
2004 Jul 13
2
confint.glm in a function
I can't get confint.glm to work from within a function. Consider
the following (using R 1.9.1, Windows 2000):
# FIRST: SOMETHING THAT WORKS FROM A COMMAND PROMPT
DF <- data.frame(y=.1, N=100)
(fit <- glm(y~1, family=binomial, data=DF,
weights=DF[,"N"]))
Call: glm(formula = y ~ 1, family = binomial, data = DF, weights =
DF[, "N"])
Coefficients:
2003 Nov 17
1
confint: which method attached?
the function
confint
uses the profiling method of the function of the package MASS
confint.glm
even after the package has been detached!
1: might this be the intenden behavior?
2. How does the function remember its 'MASS' functionality after detaching the package?
R: 1.8.0; Windows 2000
Here is a sample program
> set.seed(7882)
> x<-rep(c(0,1),c(20,20))
>
2012 Jan 18
4
confint function in MASS package for logistic regression analysis
I have the following binary data set:
Sex
Response 0 1
0 159 162
1 4 37
My commands
library(MASS)
sib.glm=glm(sib~sex,family=binomial,data=sib.data)
summary(sib.glm)
The coefficients in the output are
Estimate Std. Error z value Pr(>|z|)
(Intercept) -3.6826 0.5062 -7.274 3.48e-13
2005 Aug 11
1
Error in autoloader
Hi,
After installing the latest versions of lme4, Matrix, VR on a Debian
Box, I have run into a problem. When I use library(lme4) on R Version
2.1.0 (2005-04-18) I get the following error message:
> library(lme4)
Loading required package: Matrix
Error in autoloader(name = "confint", package = "MASS") :
autoloader did not find 'confint' in 'MASS'
2009 Oct 02
1
confint fails in quasibinomial glm: dims do not match
I am unable to calculate confidence intervals for the slope estimate in a
quasibinomial glm using confint(). Below is the output and the package info
for MASS. Thanks in advance!
R 2.9.2
MASS 7.2-48
> confint(glm.palive.0.str)
Waiting for profiling to be done...
Error: dims [product 37] do not match the length of object [74]
> glm.palive.0.str
Call: glm(formula = cbind(alive, red) ~ str,
2006 Dec 13
1
Curious finding in MASS:::confint.glm() tied to eval()
Greetings all,
I was in the process of creating a function to generate profile
likelihood confidence intervals for a proportion using a binomial glm.
This is a component of a larger function to generate and plot confidence
intervals for proportions using the above, along with bootstrap (BCa),
Wilson and Exact to visually demonstrate the variation across the
methods to some folks.
I had initially
2000 Jul 21
1
confint() error
Dear all,
I have run the confint() function according to below and I get the
following error message:
> confint(stepAIC.glm.spe.var.konn2.abund, level=0.95)
Waiting for profiling to be done...
Error: missing value where logical needed
In addition: Warning message:
NaNs produced in: sqrt((fm$deviance - OriginalDeviance)/DispersionParameter)
or
> confint(stepAIC.glm.spe.var.konn2.abund,
2012 Mar 09
2
How do I force confint() for glm() to be quiet?
I need confint() for glm() to supress the messages
"Waiting for profiling to be done..."
because they mess up the caching mechanism of pgfSweave (see
https://github.com/cameronbracken/pgfSweave/issues/40).
I have read the help page of confint(), but I do not know how to get
the help page for the glm() version, if any such help page exists.
Is there a general way of turning of output
2005 Apr 06
2
make error in R devel
Dear list,
I just hit an error that stopped my make && make check-devel operation
on my linux box (FC3, i686 P4 2GB RAM). Just to note that I've been
building the development branch(?) for some time and this is the first
hint of a problem.
1) updated the src tree using svn update
2) ran ../configure --with-recommended-package=no from my build directory
3) got:
R is now configured
2000 Aug 14
2
conf. int. for lm() and Up-arrow
Dear all,
Is there any function for calculating confidence limits
for coefficients in an lm() object? I know of the
confint() function in the MASS library working very
well on my binomial GLMs and I have tried it (using glm
() , family=gaussian) but it gives NAs according to
below. Does the confint() function not accept gaussian
GLMs? Could there be convergence problems in the GLM?
Note the
2003 Apr 17
2
make check failure with R-1.7.0
I'm baffled. When I run make check after installing from source, I
get a Error 2. From my understanding of how these things work, it
would appear to be coming from this (as at the end of base-Ex.Rout.fail:
> has.VR <- require(MASS, quietly = TRUE)
Attaching package 'MASS':
The following object(s) are masked from package:base :
confint confint.lm nclass.FD nclass.scott
2005 Dec 22
3
Windows crash in confint() with nls fit (PR#8428)
Full_Name: Ben Bolker
Version: 2.2.1
OS: Windows XP and 2000
Submission from: (NULL) (128.227.60.124)
The following code, using confint() to try
to get confidence intervals on an nls object
that has been fitted with algorithm="port"
reliably crashes R 2.2.0 and 2.2.1 with the
latest version of MASS on a Windows 2000 and
a Windows XP machine here. I *think* earlier
versions of MASS
2012 Apr 14
1
R Error/Warning Messages with library(MASS) using glm.
Hi there,
I have been having trouble running negative binomial regression (glm.nb)
using library MASS in R v2.15.0 on Mac OSX.
I am running multiple models on the variables influencing the group size of
damselfish in coral reefs (count data). For total group size and two of my
species, glm.nb is working great to deal with overdispersion in my count
data. For two of my species, I am getting a
2003 Oct 08
2
binomial glm warnings revisited
Dear all,
Last autumn there was some discussion on the list of the warning
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,
when fitting binomial GLMs with many 0 and few 1.
Parts of replies:
"You should be able to tell which coefficients are infinite -- the
coefficients and their standard errors will
2008 Jan 07
1
xtable (PR#10553)
Full_Name: Soren Feodor Nielsen
Version: 2.5.0
OS: linux-gnu
Submission from: (NULL) (130.225.103.21)
The print-out of xtable in the following example is wrong; instead of yielding
the correct ci's for the second model it repeats the ci's from the first model.
require(xtable)
require(MASS)
data(cats)
b1<-lm(Hwt~Sex,cats)
b2<-lm(Hwt~Sex+Bwt,cats)
Could generic functions check different S3 methods for an object when one of them produces an error?
2019 Jun 17
1
Could generic functions check different S3 methods for an object when one of them produces an error?
Hi,
Let's say one has an object with multiple classes, and a generic function to apply to it has associated S3 methods for more than one of those classes. Further, the method it chooses (I do not know how; some order in the class vector?) is not the suitable one and it produces an error. Would there be some way to make the generic function to choice the correct method, or in case that for
2006 Feb 08
2
Logistic regression - confidence intervals
Please forgive a rather na??ve question...
Could someone please give a quick explanation for the differences in conf intervals achieved via confint.glm (based on profile liklihoods) and the intervals achieved using the Design library.
For example, the intervals in the following two outputs are different.
library(Design)
x = rnorm(100)
y = gl(2,50)
d = data.frame(x = x, y = y)
dd = datadist(d);
2007 Dec 05
1
confint for coefficients from lm model (PR#10496)
Full_Name: Christian Lajaunie
Version: 2.5.1
OS: Fedora fc6
Submission from: (NULL) (193.251.63.39)
confint() does not use the appropriate variance term when the design
matrix contains a zero column (which of course should not happen).
Example:
A 10x2 matrix with trivial column 1:
> junk <- data.frame(x=rep(0,10), u=factor(sample(c("Y", "N"), 10, replace=T)))
The
2002 May 15
1
calculating likelihood-based CI
Hi there,
I'm interested in estimating likelihood- (or simply deviance- for GLM) based
CI. I use the following code, but is there a more efficient way to do it?
obj<-glm(y~x+z....) #fit the full model
beta.z<-seq(a, b, length=500) #where a<coef(obj)["z"]<b
out<-list()
for(i in 1:500){
out[[i]]<-update(obj,.~.-z+offset(I(beta.z[i]*z)) ) }
dev.z<-sapply(out,