stratStVal: Generate Parameter Starting Values

Description Usage Arguments Details Value See Also Examples

Description

Provides several options for generating the starting values for the parameters estimated in strat.

Usage

1
stratStVal(n, method = 1)

Arguments

n

Integer. Number of starting values to return, i.e. number of parameters.

method

Integer. Method to use:

  1. 0 vector.

  2. Random numbers from a uniform distribution on the inteval ( 0, 0.5).

  3. Random numbers from a uniform distribution on the interval ( 0, 1).

  4. Random numbers from a standard normal distribution.

Details

The default method is to assume starting values of 0 for all parameters. The other other methods for generating starting values for parameters are taken from STRAT http://www.rochester.edu/college/psc/signorino/.

Value

Numerical vector of length n.

See Also

strat, mle, optim

Examples

1
2
3
4
5
6
7
nCoef <- 6

## default method - all 0's
stratStVal(nCoef)

## uniform distribution between 0 and 1
stratStVal(nCoef, method=3)

jrnold/r-strat documentation built on May 20, 2019, 1:05 a.m.