search for: premodl

Displaying 1 result from an estimated 1 matches for "premodl".

Did you mean: premods
2009 Aug 10
1
manipulating text to generate different formulas to use in nls()
...m not interested in the last harmonic inip <- par.ini[1:n, c(1, 3:5)] # neither in the second column amps <- paste("A", 1:n, sep="") phas <- paste("P", 1:n, sep="") freqs <- paste("f", 1:n, sep="") ( premodl <- paste(amps, " * cos(2*pi*", freqs, "*x - ", phas, ")", sep="") ) ## In the two following instructions, "modl" and "initP" are defined by hand. This is what I want to generate "automagically" depending on the number of ha...