FLR

Tasklist

FS#31 - fixed in FLGrowth

Attached to Project: FLR
Opened by Laurie Kell (ltkell) - Saturday, 31 July 2010, 11:08 GMT+2
Task Type Bug Report
Package FLCore
Status New
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 2.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Looks like you cant fix parameters in FLGrowth

# class FLGrowth
setClass('FLGrowth', representation('FLModel',
mass='FLArray'))

# constructor
setGeneric('FLGrowth', function(model, ...)
standardGeneric('FLGrowth'))

setMethod('FLGrowth', signature(model='ANY'),
function(model, ...)
return(FLModel(model, ..., class='FLGrowth')))

setMethod('FLGrowth', signature(model='missing'),
function(...)
return(FLModel(formula(NULL), ..., class='FLGrowth')))

# example
data(ple4)

gro <- FLGrowth(mass~(Minf*(1-exp(-k*(age-t0))))^3, mass=FLCohort(stock.wt(ple4)))

gro <- fmle(gro, start=list(Minf=7, k=0.3, t0=0), fixed=list(Minf=7))

This task depends upon

Loading...