Learn R Programming

SemNetCleaner (version 1.0.0)

equate: Equate Group Responses

Description

In general, this function serves as a wrapper for equate.multi. This function equates the responses between two binary response matrices (e.g., two groups) by only keeping the column names that match between both matrices.

Usage

equate(rmatA, rmatB)

Arguments

rmatA

Binary matrix. A textcleaner filtered response matrix for binary matrix A

rmatB

Binary matrix. A textcleaner filtered response matrix for binary matrix B

Value

A list containing binary matrices that have matching column names (matching response):

rmatA

Binary matrix with matched responses for rmatA

rmatB

Binary matrix with matched responses for rmatB

Examples

Run this code
# NOT RUN {
#finalize rmatA
finalCmat <- finalize(convmat)

#finalize rmatB
finalRmat <- finalize(rmat)

#equate rmatA and rmatB
eq1 <- equate(finalCmat,finalRmat)

#obtain respective equated response matrices
eqCmat <- eq1$rmatA
eqRmat <- eq1$rmatB

# }

Run the code above in your browser using DataLab