magnitude: magnitude returns the magnitude of numbers in base 10

View source: R/mqmf_utils.r

magnitudeR 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)

MQMF documentation built on Sept. 8, 2023, 5:14 p.m.