profile: jk, jack knifes 'aspic'

Description Arguments Value See Also Examples

Description

Fits the aspic model to catch and catch per unit effort data removing 1 cpue observation at a time

Performs a profile using residual sum of squares, fixes some parameters for a range of values and then estimate the others

Arguments

object;

an aspic object or

object;

a character string giving an aspic "inp" file

dir;

an optional dir where aspic text files used for fitting can be found

fitted:

an aspic object

which:

character giving the parameters to do the profile for, i.e. to fix.

fixed:

character any parameters that should be fixed, all others are extimated.

maxsteps:

numeric number of parameter values to vary, default is 11.

range;

numeric how mucg to vary parameter values by, default [0.5,1.5].

fn:

function that gives values to be profiled.

run:

logical if TRUE then returns profile, otherwise it just sets the control object-

Value

An aspic object with fitted values and parameter estimates

a data frame with results turned by fn by values in which.

See Also

biodyn,boot,fit

biodyn,fit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
    data(asp)
    asp=jk(asp)
## End(Not run)
## Not run: 
data(asp)
res=profile(asp,which="msy",fixed="b0",maxsteps=31,range=c(0.5,1.1))
ggplot(res)+geom_line(aes(k,rss))

## End(Not run)

laurieKell/aspic documentation built on May 20, 2019, 7:58 p.m.