Description Usage Arguments Value Author(s)
View source: R/optim-start-function.R
Start function (see demo)
1 2 3 4 5 | fix.parameters(c(10,30,40),list(p5=50, p2=20)) # gives 10 20 30 40 50
fix.parameters(NULL,list(p1=20)) # gives 20
fix.parameters(c(10,20),list(p3=30)) # gives 10 20 30
fix.parameters(c(10,20),list(p5=30)) # error - there is no 5th parameter
fix.parameters(c(10,20),list(p3=30,x3=45)) # error - cant refer to the 3rd parameter more than once
|
df |
is the dataframe with the data to which the model will be fitted |
model |
is the model equation |
p.max |
is the maximum of iterations |
attach.df |
controls if the dataframe will be attached or not |
trace |
controls if the function should be verbose during execution. |
A merged parameter vector
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.