Displaying 3 results from an estimated 3 matches for "ssbatch".
Did you mean:
s2batch
2008 Aug 04
0
Unexpected nls behaviour: Solved
Hi Everyone,
I'd omitted the non-optional 'parameters' argument to selfStart. Making this
change to SSbatch gives the same (successful) result from the two calls to
nls.
SSbatch<-selfStart(
model=function(Batch, Coeffs)
{
Coeffs[Batch]
}
,initial=function(mCall, data, LHS)
{
# Estimate coefficients as mean of each batch
xy <- sortedXyData(mCall[["Batch"]], LHS, data)
Batch <...
2008 Aug 01
0
Unexpected nls behaviour
Hi everyone,
I thought that for a selfStart function, these two should be exactly
equivalent
> nls(Aform, DF)
> nls(Aform, DF, start=getInitial(Aform, DF))
but in this example that is not the case in R (although it is in S-plus
V6.2)
------------------------------
SSbatch<-selfStart(
model=function(Batch, Coeffs)
{
Coeffs[Batch]
}
,initial=function(mCall, data, LHS)
{
# Estimate coefficients as mean of each batch
xy <- sortedXyData(mCall[["Batch"]], LHS, data)
Batch <- data[[as.character(mCall[["Batch"]])]]
# check Batch is s...
2008 Aug 05
0
P values in non linear regression and singular gradients using nls
...Keith Jewell" <k.jewell at campden.co.uk>
Subject: Re: [R] Unexpected nls behaviour: Solved
To: r-help at stat.math.ethz.ch
Message-ID: <g76gbc$h01$1 at ger.gmane.org>
Hi Everyone,
I'd omitted the non-optional 'parameters' argument to selfStart. Making
this
change to SSbatch gives the same (successful) result from the two calls
to
nls.
SSbatch<-selfStart(
model=function(Batch, Coeffs)
{
Coeffs[Batch]
}
,initial=function(mCall, data, LHS)
{
# Estimate coefficients as mean of each batch
xy <- sortedXyData(mCall[["Batch"]], LHS, data)
Batch <...