search for: quasi

Displaying 20 results from an estimated 519 matches for "quasi".

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 # th...
2011 Oct 13
1
binomial GLM quasi separation
Hi all, I have run a (glm) analysis where the dependent variable is the gender (family=binomial) and the predictors are percentages. I get a warning saying "fitted probabilities numerically 0 or 1 occurred" that is indicating that quasi-separation or separation is occurring. This makes sense given that one of these predictors have a very influential effect that is depending on a specific threshold separating these effects, in other words in my analysis one of these variables predicts males about the 80% of times when its values ar...
2009 Nov 20
1
different results across versions for glmer/lmer with the quasi-poisson or quasi-binomial families: the lattest version might not be accurate...
Dear R-helpers, this mail is intended to mention a rather trange result and generate potential useful comments on it. I am not aware of another posts on this issue ( RSiteSearch("quasipoisson lmer version dispersion")). MUsing the exemple in the reference of the lmer function (in lme4 library) and turning it into a quasi-poisson or quasi-binomial analysis, we get different results, especially for the dispersion parameter (section 1 in the following; cf. bold passages in the...
2005 Jun 02
1
glm with variance = mu+theta*mu^2?
...ariable and theta is a parameter to be estimated)? This appears in Table 2.7 of Fahrmeir and Tutz (2001) Multivariate Statisticial Modeling Based on Generalized Linear Models, 2nd ed. (Springer, p. 60), where they compare "log-linear model fits to cellular differentiation data based on quasi-likelihoods" between variance = phi*mu (quasi-Poisson), variance = phi*mu^2 (quasi-exponential), and variance = mu+theta*mu^2. The "quasi" function accepted for the family argument in "glm" generates functions "variance", "validmu", and "dev.re...
2002 Jul 01
1
Defining own variance function / quasi-likelihood in a GLM
Hello, I've been looking in the on-line manuals and searching past posts but can't find an answer to this question. I'd like to define my own variance function in a GLM. The function glm(formula, family=quasi(var="var function")) lets me choose from a selection of built in variances, but I want to define my own function for the variance. Is there an S-plus "make.family" type function in R, or some such way of defining your own quasi-likelihoods in terms of the relationship between t...
2004 Aug 06
6
Unofficial Icecast HOWTO posted
...nofficial HOWTO on configuring icecast2 on a Linux or other UNIX machine. It's just a draft in DocBook format, but I was hoping it might help someone. I've worked enough with icecast over the past few years that I thought it time to share what I've learned. The URL is as follows: http://quasi.ksl.com/icecast/ I have older documentation in http://quasi.ksl.com/icecast/docs/ for those interested. For a more complete treatise on icecast-1.3.x take a look at http://quasi.ksl.com/icecast/legacy/. I can provide the URL to my station's own MP3 stream (using icecast-1.3.x) or to our new OGG...
2006 Jan 14
2
initialize expression in 'quasi' (PR#8486)
This is not so much a bug as an infelicity in the code that can easily be fixed. The initialize expression in the quasi family function is, (uniformly for all links and all variance functions): initialize <- expression({ n <- rep.int(1, nobs) mustart <- y + 0.1 * (y == 0) }) This is inappropriate (and often fails) for variance function "mu(1-mu)". Here is a short demo t...
2001 Dec 19
1
Pearson residuals in quasi family
Hi all, This is a very silly question or something escapes me: Let obj a simple gam poisson model. Let >obj<-gam(....,family=poisson) >obj1<-update(obj, family=quasi(link="log", var="mu")) >From summary.glm(obj1) the dispersion parameter is estimated 1.165; In fact it is: > (predict(obj1, se.fit=T)$se.fit[1:5]/predict(obj, se.fit=T)$se.fit[1:5])^2 4 5 6 7 8 1.165767 1.165767 1.165767 1.165767 1.16...
2004 Apr 30
2
Code for quasi-likelihood binomial estimation
Hello, Has anyone written up code to estimate for example a simple logit using quasi-likelihood? I know that glm() already does this, but I'd like to do some tinkering with the variance function beyond what glm() allows. I've scanned online sources and everyone seems to use glm(). Will take a crack at it if necessary but have zero experience w/q-likelihood and not tha...
2006 Jun 12
1
variance specification using glm and quasi
...8 Regression Analysis of Count Data refer to NB1 and NB2 NB1 is the negative binomial model with variance = mu + (alpha * mu^1) yielding (1+alpha)*mu NB2 sets the power to 2; hence, variance = mu + (alpha*mu^2) I think that NB2 can be requested via negbin2<-glm(hhm~sex+age,family=quasi(var="mu^2",link="log")) Is that right? If so, how I can get NB1? The quasi family appears to be very limited in variance specification options. Thanks, Jeff [[alternative HTML version deleted]]
2011 Oct 03
1
Quasi-Binomial simulation
Hi I want to do simulation on quasi-binomial distribution with some covariates. Does anyone have an idea how to do that? [[alternative HTML version deleted]]
2012 Oct 18
2
Assessing overdispersion and using quasi model with lmer, possible?
...ata) with a poisson error distribution. I have a fixed and a random variables and thus needs a mixed model. I strongly doubt that my model is overdispersed but I don't know how to get the overdispersion parameter in a mixed model. Maybe someone can help me on this point. Secondly, it seems that quasi models cannot be implemented with the function lmer, is there an option? If not, I certainly should go to variable transformation and use a gaussian error distribution, but it is not optimal. Thank you! -- View this message in context: http://r.789695.n4.nabble.com/Assessing-overdispersion-and-u...
2019 Apr 26
1
Error in glm(..., family=quasi(..., variance=list(...)))
In a glm() call using a quasi() family, one may define a custom variance function in the form of a "list containing components varfun, validmu, dev.resids, initialize and name" (quoting the help page for family). In trying to do so, I run into the following issue that I have not seen discussed previously: x <- ru...
2000 Jul 24
1
scoping problems (PR#614)
...Lumley wrote: > On Wed, 5 Jul 2000, halvorsen wrote: > > > Hola! > > > > I have the following simple function: > > > > > testcar > > function(pow){ > > ob <- glm(Pound~CG+Age+Vage,data=car,weights=No, > > subset=No>0,family=quasi(link=power(pow),var=mu^2)) > > > > deviance(ob) > > } > > But trying to run it gives: > > > > > testcar(1/2) > > Error in power(pow) : Object "pow" not found > > 'pow' isn't found because quasi() is looking for it i...
2008 Apr 26
6
quasi-random sequences
...mean = 0 , sd= 1) > plot(positions,type="p",cex=sizes) My problem is to avoid collisions (overlap, really) between the points. I would like some random pattern, but with a minimum exclusion distance. In looking up "Numerical recipes in C", I found out about some Sobol quasi-random sequences, which one can call from the gsl package, > library(gsl) > > g <- qrng_alloc(type="sobol",dim=2) > qrng_get(g,n= N) ->xy > > plot((xy),t="p",cex=0.5) but this does not look very random: I clearly see some pattern (diagonals, etc......
2006 Jun 09
1
random generation for a quasi distribution
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible Url : https://stat.ethz.ch/pipermail/r-help/attachments/20060609/ab46b028/attachment.pl
2010 Apr 09
2
computation of dispersion parameter in quasi-poisson glm
Hi list, can anybody point me to the trick how glm is computing the dispersion parameter in quasi-poisson regression, eg. glm(...,family="quasipoisson")? Thanks &regards, Sven
2011 May 18
1
Dataset Quasi Poisson
Hello, I'm looking for a dataset for Quasipoisson regression. The result must be significantly different from the classic poisson regression. You can help me? Please It is for my last university exam Thanks a lot -- View this message in context: http://r.789695.n4.nabble.com/Dataset-Quasi-Poisson-tp3533060p3533060.html Sent from the R he...
2003 Jul 04
1
Quasi AIC
Dear all, Using the quasibinomial and quasipoisson families results in no AIC being calculated. However, a quasi AIC has actually been defined by Lebreton et al (1992). In the (in my opinon, at least) very interesting book by Burnham and Anderson (1998,2002) this QAIC (and also QAICc) is covered. Maybe this is something tha...
2006 May 04
1
quasi glm start values
Hi, I'm tying to fit a glm using quasi with variance=mu(1-mu) (to try and get "well behaved" residuals). I get an error message: "cannot find valid starting values, please specify some". I have tried using start= and specifying coefficients from a previous fit (with different error structure) but get the same mes...