Displaying 20 results from an estimated 20000 matches similar to: "non-linear regression problem"
2008 Nov 18
2
error in function: nls (urgent)
Hi,all:
I am running a nonlinear regression and there is a problem.
There is a data frame: data
p s x t
1 875.0 12392.5 11600 0.06967213
2 615.0 12332.5 12000 0.06967213
3 595.0 12332.5 12000 0.06967213
4 592.5 12337.0 12000 0.06967213
5 650.0 12430.0 12000 0.06967213
6 715.0 12477.5 12000 0.06967213
.
.
.
.
str(data):
'data.frame': 234 obs. of 4 variables:
2006 Sep 28
1
Nonlinear fitting - reparametrization help
Hi,
I am trying to fit a function of the form:
y = A0 + A1 * exp( -0.5* ( (X - Mu1) / Sigma1 )^2 ) - A2 * exp ( -0.5*
( (X-Mu2)/Sigma2 )^2 )
i.e. a mean term (A0) + a difference between two gaussians.
The constraints are A1,A2 >0, Sigma1,Sigma2>0, and usually Sigma2>Sigma1.
The plot looks like a "Mexican Hat".
I had trouble (poor fits) fitting this function to toy data
2003 Jan 17
2
nls
HI,
i have some prob when i try to use nls().
my data is 1D vector, I tried to use a polynomial function(order is 3) to
fit it.
the data series is stored in x.
the a0, a1, a2, a3 below is coefficient, which i hope i can get from
calls "nls"
> z <- nls( ~ a0 + a1 * x + a2 * x * x + a3 * x * x * x, data = x )
Error in match.call(definition, call, expand.dots) :
.Primitive... is
2009 Aug 10
1
manipulating text to generate different formulas to use in nls()
Hello,
In doing a series of non-linear estimations of a function which is a sum of a varying number
of sinusoids, I would like to "autogenerate" the arguments needed by nls() depending on that
number.
For example, when there are two sinusoids:
> nls( y ~ mu + A1 * cos(2*pi*f1*x - P1) + A2 * cos(2*pi*f2*x - P2), data = some.xy.data,
start = list( mu=some.value0,
2013 Jun 12
1
Question on Simple Repeated Loops
Dear R-User,
Appreciate any helps. It looks simple, but I don't have a clue.
Given that I have a dataframe of tree population with three variables:
sp=species ,
d0=initial_size
grow=growth increment from initial size per year
How can I calculate the future growth increment of each tree for the next 3 years.
The following Rscript was written,
#----------
a0 <-
2008 Jun 14
1
restricted coefficient and factor in linear regression.
Hi,
my data set is data.frame(id, yr, y, l, e, k).
I would like to estimate Lee and Schmidts (1993, OUP) model in R.
My colleague wrote SAS code as follows:
** procedures for creating dummy variables are omitted **
** di# and dt# are dummy variables for industry and time **
data a2; merge a1 a2 a; by id yr;
proc sysnlin maxit=100 outest=beta2;
endogenous y;
exogenous l e k
2017 Mar 15
2
Having problem getting Asterisk to work on CentOS 7
What are you using for the database - SQLite?
I am using mysql (mariadb).
I am not familiar with SQLlite. Can you access the database from the
console - look up the list of tables - display the contents from a
table? Anything to see if your SQLite is working and has asterisk data
in it.
From your Asterisk console,
|CLI> core show help database|
should give you a list of commands that you
2011 Oct 06
1
Fitting parabolic function to data
Dear R users and experts,
I want to fit a shifted parabolic function with the following
functional form to my data:
f(x)=a0*(x+a1)^2+a2
(a0, a1 and a2 are scaling factors.)
What is standard approach to do this in R? I tried the "lm" function
in R but I got problems getting the above functional form.
Any help is welcome :) .
Greetings,
Henri
2013 Jan 02
1
Need help with self-defined function to perform nonlinear regression and get prediction interval
Dear All,
I was trying to call a self-defined function that performs nonlinear
regression and gets the corresponding prediction upper limit using nls2
package. However, weird thing happened. When I called the function in the
main program, an error message "fitted(nlsmodel): object 'nlsmodel' not
found" came up. But when I directly ran the codes inside the function, no
error came
2010 Jul 27
2
Glm
Hi,
Is there any way to estimate a DEPENDENT variable through a GLM/LM model?
Suppose I have the linear model: y=a0+a1*x1+a2*x2 (a0=1, a1=0.6, a2=0.8,
x1~N(1,1), x2~N(0,1)).
The alphas and the auxiliary variables are given and I have to estimate y.
The point is if I estimate it, let¹s say algebraically, I get high variances
that do not decrease as sample sizes increases... Is the any other way
2018 Nov 26
2
Vectorizer has trouble with vpmovmskb and store
Hi all,
I've run into a case where the optimizer seems to be having trouble doing
the "obvious" thing.
Consider this code:
```
define i16 @foo(<8 x i16>* dereferenceable(16) %egress, <16 x i8> %a0) {
%a1 = icmp slt <16 x i8> %a0, zeroinitializer
%a2 = bitcast <16 x i1> %a1 to i16
%astore = getelementptr inbounds <8 x i16>, <8 x i16>*
2008 Aug 05
2
Leopard Macs using Kerberos: Failed to parse negTokenTarg
I think I've found out why MacOS 10.5.x (Leopard) clients are unable to
connect to Samba shares when authenticating with Kerberos. Basically,
the
Leopard Macs insert a few extra bytes (Padding and reqFlags,
according to
wireshark) into the security blob within the Session Setup AndX Request
packet, bytes whose start tag is 0xa1, in a spot where Samba's parser
expects 0xa2. The critical
2006 Sep 28
1
starting point for non linear fitting
Hi all!
i'm trying to use nls for fitting my data. I wrote this code to find
some minimum, but it fails, returning 0 every time..... and i can't
figure out the problem... any advice?
grid <- expand.grid(A0 = seq(1000,10000,1000), A1 = seq(0,2,0.1))
exp.approx <- function(x,A0,A1) {
A0 * exp(- x*A1)
}
ss <- function(p) {
sum((durata.h.freq -
2015 Sep 15
2
Parsing Operands at TableGen Level
Hi all,
is it possible in TableGen to set value to instruction bits based on the
operands?
In other words, parsing the instruction at the TableGen level.
for instance:
"add $Rd, $Rn, $imm"
I want to have something like this:
*Inst{8} = ($Rn == Test::A0) 1 : 0;*
Is there any way to do that in TableGen? If not is there any example in the
provided example codes?
Cheers,
ES
2018 Nov 27
2
Vectorizer has trouble with vpmovmskb and store
We should handle this a lot better after r34763
~Craig
On Mon, Nov 26, 2018 at 3:13 PM Craig Topper <craig.topper at gmail.com> wrote:
> Here's a quick patch that fixes this. I don't know to avoid it in IR. I
> haven't checked any other tests, but it does fix your case. I'll try to put
> up a real phabricator tonight or tomorrow.
>
> diff --git
2011 Mar 10
2
R beginner - Error in as.vector(x, mode)
Hi everyone,
I am new to R and keep getting the message
Error in as.vector(x, mode)
while trying to run nlsystemfit.
Below is my exact code. The data is in Stata format because I only
recently swapped to R and am trying to compare results from Stata to
make sure I know what is going on.
I have searched google and read sever R-help articles with this error.
They all say the problem is to do
2012 Feb 16
3
Baffled by selinux
Apache DocumentRoot on an NFS directory:
[root at localhost ~]# service httpd start
Starting httpd: Warning: DocumentRoot [/home/www/html] does not exist
Syntax error on line 292 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
[FAILED]
[root at localhost ~]#
After some research, I found this (dated) link
2005 Aug 10
1
[LLVMdev] Relative addressing
The destination register and each of the source registers can be
relatively addressed by some special "address registers": a0, a1, a2,
a3.
suppose a0 = 4, a1 = 2, the instruction
add r[a0], r[a1], r7
equals to:
r4 = r2 + r7
How should the instruction be defined in TableGen *.td file? If an
opcode is defined for each variant (like X86InstrInfo.td) there will
be eight opcodes
2017 Aug 25
2
retrieve machine password in current Samba?
We have a wireless network that uses 802.1x authentication, in which domain joined computers use their machine credentials to connect.
Windows machines do this automatically, and until recently Linux computers could join using wicd, wpa-supplicant, and a simple script that would retrieve the machine password with tdbdump.
( specifically tdbdump -k SECRETS/MACHINE_PASSWORD/DOMAIN
2012 Apr 07
1
Systemfit with structural equations and cross equation parameter interaction
Hi there,
I want to estimate simultaneous equation model with panel data. The model looks as follows
Y1=a0+a1*X1+a2*X2
Y2=b0+b1*X2+b2*X1
X1=Z1-(Y1/a1)
X2=Z2-(Y2/b1)
I
In this model Y1, Y2, X1 and X2 are endogenous variables; Z1, Z2 are exogenous variables and a0, a1, a2, b0, b1 and b2 are parameters. Could any one please help me how to estimate this model in R. Thanking you in anticipation