optim.start: Start function (see demo)

Description Usage Arguments Value Author(s)

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

Description

Start function (see demo)

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

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.

Value

A merged parameter vector

Author(s)

Claus E. Andersen


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