optim.predict: Make prediction withs the fitted function.

Description Usage Arguments Value Author(s)

View source: R/optim-predict-function.R

Description

Make predictions with the fitted function.

Usage

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

Arguments

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.

Value

A merged parameter vector

Author(s)

Claus E. Andersen


claus-e-andersen/clanOptim documentation built on April 16, 2020, 5:21 p.m.