Displaying 20 results from an estimated 6000 matches similar to: "proposed simulate.glm method"
2008 May 09
1
str and class
In previous versions of the gnm package, the terms component of "gnm"
objects had a "classID" attribute. This caused problems when used with
str as the following simple example illustrates:
> x <- 1
> attr(x, "classID") <- "type1"
> str(x)
Class 'type1' Class 'type1' Class 'type1' Class 'type1' Class
2015 Apr 29
2
Formula evaluation, environments and attached packages
Hi!
Some time ago, I replaced calls to library() with calls to
requireNamespace() in my package logmult, in order to follow the new
CRAN policies. But I just noticed it broke jackknife/bootstrap using
several workers via package parallel.
The reason is that I'm running model replicates on the workers, and the
formula includes non-standard terms like Mult() which are provided by
gnm. If gnm
2007 Jan 16
1
nonlinear regression: nls, gnls, gnm, other?
Hi all,
I'm trying to fit a nonlinear (logistic-like) regression, and I'd like
to get some recommendations for which package to use.
The expression I want to fit is something like:
y ~ A * exp(X * Beta1) / (1 + exp(-(x + X * Beta2 - xmid)/scal))
Basically, it's a logistic function, but I want to be able to modify
the saturation amplitude by a few parameters (Beta1) and shift the
2006 Dec 14
3
Model formula question
Hi all,
I'm not familiar with R programming and I'm trying to reproduce a
result from a paper.
Basically, I have a dataset which I would like to model in terms of
successive increments, i.e. (y denote empirical values of y)
y_1 = y1,
y_2 = y1 + delta1,
y_3 = y1 + delta1 + delta2.
...
y_m = y1 + sum_2^m delta j
where delta_j donote successive increments in the y-values, i.e.
delta
2009 Feb 25
2
[R] length 1 offset in glm (& lm)
This post about length 1 offsets on R help seems to have been ignored
(sorry deleted original email - is there a way to continue thread in
this case?)
https://stat.ethz.ch/pipermail/r-help/2009-February/189352.html
It does seem to be a bug, in that glm does not behave as documented. In
fact the same bug applies to lm as well.
I don't think the suggested fix works though - Y isn't
2009 Mar 09
1
Zero distance error in corSpatial - correlation structure using lme
Hello,
I am having a problem specifying the correlation structure in lme which
leads to the error: Error in getCovariate.corSpatial(object, data =
data) : Cannot have zero distances in "corSpatial". I have specified a
grouping variable which is the only fix I could find by searching this
error on R-help.
ISee the below example. When my samples (tran) - which are transects
2007 Mar 20
2
Any R function for self-controlled case series method /effect absorption?
Hello,
Has anyone written R functions for applying self-controlled case series
methods (http://statistics.open.ac.uk/sccs/).
In fact only thing needed is to modify glm function to allow absorption
of effect. Eg. in Poisson model individual effect is used as factor, but
it is considered as nuisance term where parameter estimates are not needed.
Could anyone point how absorbing individual
2010 Jul 06
1
nls + quasi-poisson distribution
Hello R-helpers,
I would like to fit a non-linear function to data (Discrete X axis,
over-dispersed Poisson values on the Y axis).
I found the functions gnlr in the gnlm package from Jim Lindsey: this can
handle nonlinear regression equations for the parameters of Poisson and
negative binomial distributions, among others. I also found the function
nls2 in the software package
2007 Aug 02
1
simulate() and glm fits
Dear All,
I have been trying to simulate data from a fitted glm using the simulate()
function (version details at the bottom). This works for lm() fits and
even for lmer() fits (in lme4). However, for glm() fits its output does
not make sense to me -- am I missing something or is this a bug?
Consider the following count data, modelled as gaussian, poisson and
binomial responses:
counts
2019 Sep 25
2
depending on orphaned packages?
SuppDists is orphaned on CRAN (and has been since 2013).
https://cran.r-project.org/web/checks/check_results_.html
Oddly, the simulate method for the inverse.gaussian family
[inverse.gaussian()$simulate] depends (in a loose sense) on SuppDists
(it fails if the SuppDists namespace is not available:
if (!requireNamespace("SuppDists", quietly = TRUE))
stop("need CRAN
2019 Sep 29
2
depending on orphaned packages?
On 2019-09-25 3:26 a.m., Martin Maechler wrote:
>>>>>> Ben Bolker
>>>>>> on Tue, 24 Sep 2019 20:09:55 -0400 writes:
>
> > SuppDists is orphaned on CRAN (and has been since 2013).
> > https://cran.r-project.org/web/checks/check_results_.html
>
> > Oddly, the simulate method for the inverse.gaussian family
> >
2003 Oct 14
2
different results depending of variable position.
Hi,
I make an analysis and depending of the order of the variables, the
significance change, look.
m1 <- glm((infec/ntot)~idade+sexo+peso,family=binomial,weights=ntot)
> anova(m1,test="F")
Analysis of Deviance Table
Model: binomial, link: logit
Response: (infec/ntot)
Terms added sequentially (first to last)
Df Deviance Resid. Df Resid. Dev F Pr(>F)
2019 Sep 29
1
depending on orphaned packages?
Ah, I spoke too soon. I started putting the demo code into a test suite and ran one check with valgrind and ? sure enough ? there's def more issues (a cpl functions) than the overt/easy ones (and, I went back to the check results page and, also sure enough, they're there, too). They look to be fairly straightforward to resolve but it's going to take a bit longer than "this
2013 Feb 21
0
Odd Error message with rare events logit
I'm running a rare events logit model in R using the Zelig package and am
getting some of the oddest error messages that I can't figure out.
y = rnorm(100)
x = c(rep("0",1), rep("1",99))
d = data.frame(won=x, bid=y)
d
mod1 <- zelig(y~x, model="relogit", data=d, tau=1/100,
case.correct="prior", bias.correct=TRUE, robust=TRUE)
> mod1 <-
2013 Aug 22
1
Confusion about Depends:, Imports:, Enhances:, import(), inportFrom()
In checking my vcdExtra package, the following NOTE newly appeared
(R-Forge, using R version 3.0.1 Patched (2013-08-20 r63635))
Package in Depends field not imported from: ?gnm?
These packages needs to imported from for the case when
this namespace is loaded but not attached.
In the DESCRIPTION file, I have
Depends: R (>= 2.10), vcd, gnm (>= 1.0.3)
In NAMESPACE:
# we are a vcd
2005 Apr 07
2
about mantelhaen.test (PR#7779)
Full_Name: Chien-yu Peng
Version: 2.0.1
OS: Windows XP Professional
Submission from: (NULL) (140.109.72.181)
Dear all:
Although I don't know you, I am thankful for your help.
When I use the function mantelhaen.test for R x C x K (R, C > 2) table,
the output is not the same as SAS's. I don't know that the result consist with
one of SAS's. But it works correctly for 2
2002 Aug 08
0
RE: rmultinom
Hi Mark:
I had also used sample and tabulate for generating multinomial and found it
to be quite slow. So I had written a multinomial random numbers generator
based on the GENMUL subroutine from "ranlib", which in turn is based on the
algorithm from Luc Devroye's book on "Non-Uniform Random Variate Generation"
You may want to compare this with your hybrid algorithm and
2006 Oct 31
0
about mantelhaen.test (PR#7779)
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig5A700CC15DEABD01445A1B70
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,
I have modified the code originally posted to include capability for
arbitrary weightings for the rows and columns (which apply in the
nominal-ordinal and the ordinal-ordinal cases). The code is pasted
2007 Oct 03
2
Speeding up simulation of mean nearest neighbor distances
I've written the function below to simulate the mean 1st through nth
nearest neighbor distances for a random spatial pattern using the
functions nndist() and runifpoint() from spatsat. It works, but runs
relatively slowly - would appreciate suggestions on how to speed up
this function. Thanks. --Dale
library(spatstat)
sim.nth.mdist <- function(nth,nsim) {
D <- matrix(ncol=nth,
2013 Mar 05
2
Zelig package: Coxph model problems
Hi,
I'm having problems with the Zelig package - when using
the below R displays the follwing message (I'm running R
i386 2.15.3 for Windows and have updated all the Zelig
packages):
z.out<-zelig(Surv(psurv2, pcens2) ~ ren_sup3 + age,
data=data_urgent, model="coxph")
** The model "coxph" is not available with the currently
loaded packages,
** and is not an