equate: Equate Groups

View source: R/equate.R

equateR Documentation

Equate Groups

Description

A function to "equate" multiple response matrices to one another. N number of groups are matched based on their responses so that every group has the same responses in their data

Usage

equate(...)

Arguments

...

Matrices, data frames or a list of matrices and data frames. Binary response matrices to be equated

Value

This function returns a list containing the equated binary response matrices in the order they were input. The response matrices are labeled as the object name they were entered with

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

# Obtain binary data
bin <- open.binary

# Finalize mat1
mat1 <- finalize(bin[c(1:5),])

# Finalize mat2
mat2 <- finalize(bin[c(6:10),])

# Equate mat1 and mat1
eq <- equate(mat1, mat2)

# Obtain respective equated response matrices
eq.mat1 <- eq$mat1 # list objects are named with the names
eq.mat2 <- eq$mat2 # they were entered with


SemNeT documentation built on Aug. 12, 2023, 5:06 p.m.