Re: [R] nls: Fitting two models at once?

2008-11-07 Thread Heather Turner
Dear Martin, You can use the same idea of concatenating the data in R. The following reproduces your example: spec - c(asfe, dias) n1 - length(asfe) n2 - length(dias) CYT - c(28 * CYTF, 24.6 * 2 * CYTB6) B559HP - c(B559HP, numeric(n2)) B559LP - c(numeric(n1), B559LP) C550 - c(numeric(n1), C550)

Re: [R] nls: Fitting two models at once?

2008-11-07 Thread Martin Ballaschk
Dear Heather! Thank you very, very much for your solution which also reproduces exactly the results I get from the SigmaPlot analysises. :) Martin Heather Turner schrieb: Dear Martin, You can use the same idea of concatenating the data in R. The following reproduces your example:

[R] nls: Fitting two models at once?

2008-11-06 Thread Martin Ballaschk
Hello, I'm still a newbie user and struggling to automate some analyses from SigmaPlot using R. R is a great help for me so far! But the following problem makes me go nuts. I have two spectra, both have to be fitted to reference data. Problem: the both spectra are connected in some way: the