get.param: get a data frame of starting values and bounds for fitting...

Description Usage Arguments Details Value See Also Examples

Description

Construct a data frame containing starting values and upper/lower bounds for fitting SAT curves having certain constraints.

Usage

1
2
3
4
5
6
get.param(par.cond, 
  asym = c(1, 0.5, 4.7), 
  rate = c(3, 0.1, 12), 
  incp = c(0.25, 0.1, 2), 
  random.start = FALSE, 
  auto.asym = FALSE, data)

Arguments

par.cond

a list specifying the configuraiton of parameters per condition. Should contain three named elements: asym, rate, and incp. See 'Details'.

asym

a numeric vector specifying the starting value, minimum and maximum values for asymptote

rate

a numeric vector specifying the starting value, minimum and maximum values for rate.

incp

a numeric vector specifying the starting value, minimum and maximum values for intercept.

random.start

logical. If TRUE, starting values will be based on random numbers that fall between lower and upper bounds.

auto.asym

logical. If TRUE, values for the asymptote parameters are automatically calculated as the average of the last 4 dprime values specified in the data.

data

data.frame of class mrsat.data

Details

This is a convinience function to generate a data frame of inital starting parameter values as well as lower and upper bounds that need to be passed when using the function fit.SATcurve. The default values are set based on prior studies, but are somewhat arbitrarily chosen.

Value

A data frame containing:

start

the starting values for each parameters to be optimized

lower

the lower bound for each parameters to be optimized

upper

the upper bound for each parameters to be optimized

See Also

fit.SATcurve

Examples

1
2
3
4
5
pc1 <- list(asym=c(1,2,3), rate=c(1,2,2), incp=c(1,1,1))
get.param(pc1)

pc2 <- list(asym=c(1,2,3,4,5), rate=c(1,2,2,3,3), incp=c(1,1,1,2,2))
get.param(pc2)

matsukik/mrsat documentation built on May 21, 2019, 12:57 p.m.