getODummyMatForOneVec {aglm}R Documentation

Create a O-dummy matrix for one variable

Description

Create a O-dummy matrix for one variable

Usage

getODummyMatForOneVec(
  x_vec,
  breaks = NULL,
  nbin.max = 100,
  only_info = FALSE,
  dummy_type = NULL
)

Arguments

x_vec

A numeric vector representing original variable.

breaks

A numeric vector representing breaks of bins (If NULL, automatically generated).

nbin.max

The maximum number of bins (used only if breaks=NULL).

only_info

If TRUE, only information fields of returned values are filled and no dummy matrix is returned.

dummy_type

Used to control the shape of linear combinations obtained by O-dummies for quantitative variables (deprecated).

Value

A list with the following fields:

Author(s)

Kenji Kondo


[Package aglm version 0.4.0 Index]