MakeAgreementMatrix: MakeAgreementMatrix

View source: R/MakeAgreementMatrix.R

MakeAgreementMatrixR Documentation

MakeAgreementMatrix

Description

Given a bunch of answers to a survey, this function makes a matrix representing what fraction of the time each person agreed with each other person.

Usage

MakeAgreementMatrix(SurveyResults)

Arguments

SurveyResults

A matrix containing the answers to a bunch of survey questions. Each row represents a particular individual and each column represents a particular question.

Value

A matrix M, where each entry represents the percentage of the time that individual i agreed with individual j.

Note

This is probably already implemented elsewhere in R, and may be identical to a correlation matrix or something. I feel slightly silly putting it here to be honest. Oh well.

Author(s)

Alastair Jamieson Lane. <aja107@math.ubc.ca>

Benjamin Grant Purzycki. <bgpurzycki@cas.au.dk>

Examples

FakeData<- GenerateConsensusData(8,8,4)
Survey <- FakeData$Survey
Ma <- MakeAgreementMatrix(Survey)    


alastair-JL/AnthroTools documentation built on Aug. 29, 2024, 9:36 a.m.