roundcoefk {FatTailsR}R Documentation

Round Coefk

Description

Round coefk parameters in a standard manner or in a special manner, the latest being useful to display nice matrix or data.frame.

Usage

roundcoefk(coefk, dgts = NULL, parnames = TRUE)

Arguments

coefk

numeric, matrix or data.frame representing parameters c(m,g,a,k,w,d,e).

dgts

integer. The number of rounded digits.

parnames

boolean. Output displayed with or without parameter names.

Details

For dgts between 1 and 9, rounding is done in the standard way and all parameters are rounded at the same number of digits.

For dgts between 10 and 27, rounding of parameters c(m,g,a,k,w,d,e) is done in the following way:

Examples

    

mat   <- matrix(runif(35), ncol=7) 
coefk <- mat[1,]

roundcoefk(coefk, dgts = 2, parnames = FALSE)
roundcoefk(coefk, dgts = 15)
roundcoefk(mat, dgts = 15)



[Package FatTailsR version 1.8-5 Index]