View source: R/MakeAgreementMatrix.R
MakeAgreementMatrix | R Documentation |
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.
MakeAgreementMatrix(SurveyResults)
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. |
A matrix M, where each entry represents the percentage of the time that individual i agreed with individual j.
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.
Alastair Jamieson Lane. <aja107@math.ubc.ca>
Benjamin Grant Purzycki. <bgpurzycki@cas.au.dk>
FakeData<- GenerateConsensusData(8,8,4)
Survey <- FakeData$Survey
Ma <- MakeAgreementMatrix(Survey)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.