Skip to contents

The input2 object is a matrix created from the interest1981 dataset for further analysis. The process involves extracting relevant columns, filtering rows, transforming values, and handling missing data.

Format

A numeric matrix with rows corresponding to filtered observations and columns representing transformed variables.

Details

The input2 matrix is derived from the interest1981 dataset through the following steps:

  1. Extract relevant columns: input <- as.matrix(interest1981[, 9:38])

  2. Filter rows with sufficient data: input <- input[rowSums(!is.na(input)) >= 5, ]

  3. Transform the matrix: input <- (100 - input) / 50

See also

Examples

if (FALSE) { # \dontrun{
data(input)
} # }