Displaying 1 result from an estimated 1 matches for "value6".
Did you mean:
value
2009 Aug 10
1
manipulating text to generate different formulas to use in nls()
...r.
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, A1=some.value1, P1=some.value2, A2=some.value3,
P2=some.value4, f1=some.value5, f2=some.value6 ) )
Adding a third sinusoid, the model and the starting parameters needed become:
> nls( y ~ mu + A1 * cos(2*pi*f1*x - P1) + A2 * cos(2*pi*f2*x - P2) + A3 * cos(2*pi*f3*x - P3),
data = some.xy.data, start = list( mu=some.value0, A1=some.value1,
P1=some.value2, A2=...