magnitude {MQMF}R Documentation

magnitude returns the magnitude of numbers in base 10

Description

magnitude is useful when using an optimizer such as optim, which uses a parscale parameter. magnitude can determine the respective parscale value for each parameter value.

Usage

magnitude(x)

Arguments

x

the vector of numbers (parameters) whose magnitudes are needed

Value

a vector of magnitudes

Examples

  x <- c(0,0.03,0.3,3,30,300,3000)
  magnitude(x)

[Package MQMF version 0.1.5 Index]