Learn R Programming

ordinalTables (version 1.0.0.3)

log_linear_create_linear_by_linear: Creates a vector containing the linear-by-linear vector.

Description

Uses the ordinal ranks (1, 2, ..., nrow(n)) as data.

Usage

log_linear_create_linear_by_linear(n, centered = FALSE)

Value

a vector containing the new variable

Arguments

n

the matrix of observed cell counts

centered

should the variables be centered before the product is computed

Examples

Run this code
linear <- log_linear_create_linear_by_linear(vision_data)
x <- log_linear_equal_weight_agreement_design(vision_data)
x_prime <- log_linear_append_column(x, linear)

Run the code above in your browser using DataLab