Displaying 20 results from an estimated 200 matches similar to: "gnm and gnlr3"
2012 Apr 19
1
non-numeric argument in mle2
Hi all,
I have some problems with the mle2 function
> RogersIIbinom <- function(N0,attackR3_B,Th3_B)
{N0-lambertW(attackR3_B*Th3_B*N0*exp(-attackR3_B*(24-Th3_B*N0)))/(attackR3_B*Th3_B)}
> RogersII_B <-
mle2(FR~dbinom(size=N0,prob=RogersIIbinom(N0,attackR3_B,Th3_B)/N0),start=list(attackR3_B=1.5,Th3_B=0.04),method="Nelder-Mead",data=dat)
Error in dbinom(x, size, prob, log)
2012 Jun 07
3
- detecting outliers
Hello all,
I am estimating parameters for regression functions on experimental data.
Functional response of Rogers type II.
I would like to know which points of my dataset are outliers. What is the
best method to do this with R?
I found a method via R help, but would like to know if there are better
methods for my purpose.
Here is the script I us now:
library("mvoutlier")
dat
2012 Apr 18
1
error estimating parameters with mle2
Hi all,
When I try to estimate the functional response of the Rogers type I
equation (for the mle2 you need the package bbmle):
> RogersIbinom <- function(N0,attackR2_B,u_B) {attackR2_B+u_B*N0}
> RogersI_B <-
mle2(FR~dbinom(size=N0,prob=RogersIbinom(N0,attackR2_B,u_B)/N0),start=list(attackR2_B=4.5,u_B=0.16),method="Nelder-Mead",data=data5)
I get following error message
2012 Jun 05
1
- help with the predict function
Hi all,
I would like to predict some values for an nls regression function
(functional response model Rogers type II). This is an asymptotic function
of which I would like to predict the asymptotic value
I estimated the paramters with nls, but can't seem to get predictions for
values of m choice......
This is my script:
RogersII_N <-
2012 Apr 16
0
automatically scan multiple starting values
Hi all,
I am doing nls regression of the Rogers type III equation. However I can't
find good starting values and keep getting the error messages: "Missing
value or an infinity produced when evaluating the model" OR "singular
gradient matrix at initial parameter estimates"
Is there a way to automatically check different starting values and give a
list of values for each
2012 Apr 03
3
regression for poisson distributed data
Hello all,
I would like to get parameter estimates for different models. For one of
them I give the code in example. I am estimating the parameters (i,j and
k) with the nls function, which sees the error distribution as normal, I
would however like to do the same as nls with the assumption that the
errors are poisson distributed.
Is there a way to do this with R? Are there packages designed
2005 Apr 15
1
gnlr3 location parameter
Hi list,
my previous question was obviously too basic to deserve an answer -
apologies for that. I'm learning, things can only get better :-)
My current problem is with fitting a generalized gamma distribution with
an additional "shift" parameter, that represents a shift of the
distribution along the X axis.
The gnlr3 function (in Jim Lindsey's GNLM package) fits this
2005 Apr 14
0
gnlr/3 question
Hi list,
I'd like to fit generalized gamma and weibull distributions to a number
of data sets. I've been searching around and found references to R and
Jim Lindsey's GNLM package, which has the gnlr and gnlr3 procedures that
can do this.
Now, I'm completely new to R, and I'm working my way through the
introduction... Nevertheless, I'd like to ask if someone could post
2008 Apr 10
1
Fit a nonlinear regression model with power exponentially distributed errors
How to fit a nonlinear regression model with power exponentially distributed
errors? I know gnlm has a function gnlr3 that could work, but I would be
grateful if example R code is provided.
Daniel
[[alternative HTML version deleted]]
2000 Feb 03
1
Re: your mail
> On Wed, 2 Feb 2000, Adriane Leal wrote:
>
> > I'd like to perform a box-cox transformation to a data set and also plot
> > lambda versus L(lambda) using R. Does anybody knows how can I do such a
> > thing?
gnlr3 in my gnlm library does both linear and nonlinear models with
Box-Cox transformation. However, it is somewhat nonstandard as it
renormalizes to obtain a
2010 Feb 17
0
Help with sigmoidal quasi-poisson regression using glm and gnm functions
Hi everyone,
I'm trying to perform the following regressions in order to compare linear
vs. sigmoidal fit of the relationship between my dependent variable (y) and
one explaining parameter (x2), both including the confounding effects of a
third variable (x1):
quasi-pois-lin <- glm(y ~ x1 + x2, family = quasipoisson(link="identity"),
data=fit)
quasi-pois-sig <- gnm(y ~ x1 +
2009 Apr 30
0
Categorical variable in a custom nonlin function with gnm
Hi all
I want to construct a generalised nonlinear model (binomial family) using gnm, of the form:
Response = a + b variable1 + c variable2 + d variable3 - d b variable4 - d c variable5,
with the parameters b, c, and d appearing more than once. Hence, I think I need to use a custom nonlin function with gnm.
One of my predictor variables is categorical, so I have created a dummy variable for
2012 Sep 11
1
boot() with glm/gnm on a contingency table
Hi everyone!
In a package I'm developing, I have created a custom function to get
jackknife standard errors for the parameters of a gnm model (which is
essentially the same as a glm model for this issue). I'd like to add
support for bootstrap using package boot, but I couldn't find how to
proceed.
The problem is, my data is a table object. Thus, I don't have one
individual per
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
2005 Jan 25
1
Threshhold Models in gnlm
Hello,
I am interested in fitting a generalized nonlinear regression (gnlr) model
with negative binomial errors.
I have found Jim Lindsay's package that will do gnlr, but I have having
trouble with the particular model I am interested in fitting.
It is a threshhold model, where below a certain value of one of the
parameters being fitted, the model changes.
Here is a sample:
Cones:
1999 Mar 22
0
gnlr shape parameter
Is there a simple say of extracting the shape parameter from gnlr? The
return given is the actual function rather than the value. I have looked
at all the values returned by names(gnlr).
ie
gmod<-gnlr(data,....)
gmod$shape
returns the function definition rather than the value found.
Simple case I am using it is for censored normal data (rather simpler than
survival4 it seems). The value
1999 May 06
1
Model building ...
Hi
Are there any functions that de-convolute data into a given number of
clusters, rather like the NPMLE GLIM macros from Murray Aitkin and Brian
Francis? Basically I would like to code into R the same approach but
include the possiblility of some data being censored. In principle the
formulae are the same (just replace the likelihood function) but I haven't
managed to get my head round the
2004 Oct 09
0
RE: zero-inflated count models (was polr problem solved)
John Fox wrote
<<<
>From your description, it seems possible that there are too many zeros
for a Poisson or negative-binomial model. Since the focus of your paper
is the methodology, you might want to try a zero-inflated Poisson or
negative-binomial model. Though I haven't tried them, I'm aware of two
sources of R functions for zero-inflated count models -- zeroinfl(),
from
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
2000 Sep 19
4
methods for interval-censored data
Dear all,
Are there functions or packages in R that can handle interval-censored
data? I have looked in various packages (such as survival5 or event), but
it seems that only right-censored data can be analysed.
More generally, are there methods to analyse both interval-censored
observations and right-censored observations in the same data set?
Thanks in advance.
Emmanuel Paradis