Learn R Programming

SemNetCleaner (version 1.1.0)

equate.multi: Equate Multiple Groups

Description

A function to apply equate to multiple response matrices

Usage

equate.multi(...)

Arguments

...

Matrices or 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

Examples

Run this code
# NOT RUN {
# Toy example
raw <- open.animals[c(1:10),-c(1,2)]

# Clean and prepocess data
clean <- textcleaner(raw, partBY = "row", dictionary = "animals")

# Obtain binary data
bin <- clean$binary

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

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


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

# Obtain respective equated response matrices
eq.mat1 <- eq$mat1
eq.mat2 <- eq$mat2

# }

Run the code above in your browser using DataLab