Displaying 20 results from an estimated 3000 matches similar to: "nls"
2003 Mar 26
1
nls
Hi,
df <- read.table("data.txt", header=T);
library(nls);
fm <- nls(y ~ a*(x+d)^(-b), df, start=list(a=max(df->y,na.rm=T)/2,b=1,d=0));
I was using the following routine which was giving Singular Gradient, Error in
numericDeriv(form[[3]], names(ind), env) :
Missing value or an Infinity produced when evaluating the model errors.
I also tried the
2003 Jan 30
2
Regarding R
Hi,
I am a grad student at the university of Louisiana at Lafayette. I have a
question. I have an equation with 3 unknowns. f= P/ (r+p) pow(B). I have values
of f for different r's. Can i use R to find the P,p,B values which are
constants. The equation is Manderbolts equation.
Thanks and regards,
Sai Charan Komanduru
Research Assistant, CACS
ULL
2006 Sep 15
1
Formula aruguments with NLS and model.frame()
I could use some help understanding how nls parses the formula argument
to a model.frame and estimates the model. I am trying to utilize the
functionality of the nls formula argument to modify garchFit() to handle
other variables in the mean equation besides just an arma(u,v)
specification.
My nonlinear model is
y<-nls(t~a*sin(w*2*pi/365*id+p)+b*id+int,data=t1,
2006 Sep 07
0
Help understanding how nls parses the formula argument to estimate the model
I could use some help understanding how nls parses the formula argument
to a model.frame and estimates the model. I am trying to utilize the
functionality of the nls formula argument to modify garchFit() to handle
other variables in the mean equation besides just an arma(u,v)
specification.
My nonlinear model is
y<-nls(t~a*sin(w*2*pi/365*id+p)+b*id+int,data=t1,
2006 Sep 21
0
Help understanding how nls parses the formula argument to estimate the model
I could use some help understanding how nls parses the formula argument
to a model.frame and estimates the model. I am trying to utilize the
functionality of the nls formula argument to modify garchFit() to handle
other variables in the mean equation besides just an arma(u,v)
specification.
My nonlinear model is
y<-nls(t~a*sin(w*2*pi/365*id+p)+b*id+int,data=t1,
2005 Apr 06
1
nls.control
Hello everyone,
I'm trying to test the accurracy of R on the Eckerle4 dataset from NIST and
I don't understand how the control option of the nls function works.
I tought nls(...) was equivalent to nls(...control=nls.control()) i.e nls.control() was the default value of control, but here is the error I get :
> n2=nls(V1~(b1/b2) *
2004 Jun 10
2
nls and R scoping rules
I apologize for posting this in essence the second time (no light at the
end of the tunnel yet..):
is there a way to enforce that "nls" takes both, the data *and* the
model definition from the parent environment? the following fragment
shows the problem.
#======== cut here==========
wrapper <- function (choose=0)
{
x <- seq(0,2*pi,len=100)
y <- sin(1.5*x);
y <-
2003 Jan 30
3
Regarding Installation of R
Hi,
I am trying to install R on Windows. I copied the set
up binary. But it is corrupted on all the mirror
sites. Please let know an alternative for getting the
software.
Thanks,
Sai
2018 May 05
0
Bug in profile.nls with algorithm = "plinear"
Dear sirs
It seems like there is a bug in `profile.nls` with `algorithm =
"plinear"` when a matrix is supplied on the right hand side. Here is
the bug and a potential fix
#####
# example where profile.nls does not work with `plinear` but does with
# `default`
require(graphics)
set.seed(1)
DNase1 <- subset(DNase, Run == 1)
x <- rnorm(nrow(DNase1))
f1 <- nls(density ~ b1/(1 +
2008 May 06
2
NLS plinear question
Hi All.
I've run into a problem with the plinear algorithm in nls that is confusing
me.
Assume the following reaction time data over 15 trials for a single unit.
Trials are coded from 0-14 so that the intercept represents reaction time in
the first trial.
trl RT
0 1132.0
1 630.5
2 1371.5
3 704.0
4 488.5
5 575.5
6 613.0
7 824.5
8 509.0
9
2005 Jun 21
2
nls(): Levenberg-Marquardt, Gauss-Newton, plinear - PI curve fitting
Hello,
i have a problem with the function nls().
This are my data in "k":
V1 V2
[1,] 0 0.367
[2,] 85 0.296
[3,] 122 0.260
[4,] 192 0.244
[5,] 275 0.175
[6,] 421 0.140
[7,] 603 0.093
[8,] 831 0.068
[9,] 1140 0.043
With the nls()-function i want to fit following formula whereas a,b, and c
are variables: y~1/(a*x^2+b*x+c)
With the standardalgorithm
2008 Oct 02
1
nls with plinear and function on RHS
Dear R gurus,
As part of finding initial values for a much more complicated fit I want to
fit a function of the form y ~ a + bx + cx^d to fairly "noisy" data and have
hit some problems.
To demonstrate the specific R-related problem, here is an idealised data
set, smaller and better fitting than reality:
# idealised data set
aDF <- data.frame( x= c(1.80, 9.27, 6.48, 2.61, 9.86,
2008 Jul 08
2
nls and "plinear" algorithm
hello all
i havnt had a chance to read through the references provided for the
"nls" function (since the libraries are closed now).
can anyone shed some light on how the "plinear" algorithm works? also,
how are the fitted values obtained? also, WHAT DOES THE ".lin" below
REPRESENT?
thanking you in advance
######################################
i have a quick
2012 Aug 23
1
NLS bi exponential Fit
Hi everyone,
I'm trying to perform a bi exponential Fit with the package NLS. the
plinear algorithm seems to be a good choice
see:
p<-3000
q<-1000
a<--0.03
b<--0.02
t<-seq(0:144);t
y<-p*exp(a*t) + q*exp(b*t)+rnorm(t,sd=0.3*(p*
exp(a*t) + q*exp(b*t)))
fittA <- nls(y~cbind(exp(a*t), exp(b*t)),
algorithm="plinear",start=list(a=-.1, b=-0.2), data=list(y=y, t=t),
2006 Jan 08
1
confint/nls
I have found some "issues" (bugs?) with nls confidence intervals ...
some with the relatively new "port" algorithm, others more general
(but possibly in the "well, don't do that" category). I have
corresponded some with Prof. Ripley about them, but I thought I
would just report how far I've gotten in case anyone else has
thoughts. (I'm finding the code
2009 Jul 23
1
Network from package functions
Dear R-helpers,
does anyone know of some package/function that can build a network from
the functions that are implemented in a package,
i.e. visualize the cross-references from one function to another in the
same or some dependent package?
An example would be a function like 'nls' on top of the hierarchy and
then a network of nodes from the functions that are called within 'nls'
1999 Mar 30
0
Prototype nls library for R using closures
I just uploaded to CRAN a prototype nls (nonlinear least squares)
library for R. It is far from being finished but I am asking for
this preliminary version to be installed in the src/contrib/Devel
section of CRAN so others can see the use of function closures
to emulate the behaviour of objects in languages like Java.
It will be a couple of days before the file is installed in CRAN and
has a
2010 Apr 15
2
using nls for gamma distribution (a,b,d)
Dear all
i want to estimated the parameter of the gamma density(a,b,d)
f(x) = (1/gamma(b)*(a^b)) * ((x-d)^(b-1)) * exp{-(x-d)/a)} for x>d
f(x) = Age specific fertility rate
x = age
when i run this in R by usling nls()
gamma.asfr <- formula(asfr ~ (((age-d)^(b-1))/((gamma(b))*(a^b)))*
exp(-((age-d)/a)))
gamma.asfr1 <- nls(gamma.asfr, data= asfr.aus, start = list(b = 28, a = 1,
d= 0.5),
2005 Jun 01
1
nls(() and trace
hi everybody,
is there a canonical way to get hold of the "trace=TRUE" output from
nls, i.e. to copy it to a R variable (or at least to an external log file)?
I have only found the possibility to "fix(nlsModel)" (and than the
correct copy of that: namespace function ...) within the R-session by
modifying the trace() definition within nlsModel. not really good for
everyday
2011 Jun 15
4
Problems with nls
I'm trying to fit the Bass Diffusion Model using the nls function in R but
I'm running into a strange problem. The model has either two or three
parameters, depending on how it's parameterized, p (coefficient of
innovation), q (coefficient of immitation), and sometimes m (maximum market
share). Regardless of how I parameterize the model I get an error saying
that the step factor has