Description Usage Arguments Value Author(s)
View source: R/optim-predict-function.R
Make predictions with the fitted function.
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
|
fm |
is the fitted model |
df |
is the dataframe with the data to which the model will be fitted |
fit.func |
is the function with the fitted function |
model |
is the model equation |
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.