View source: R/zygocity-funcs.R
zygo_weighted | R Documentation |
Calculate the item score of a question. Function takes a single vector, with information on the question type and the twin type ('single' or 'pair') and calculates the zygocity item score.
zygo_weighted(x, type, n = "single")
x |
vector or recoded zygocity data (-1, 0, 1) |
type |
string. one of 'drop', 'stranger', 'dexterity', 'voice', 'eye' or 'belief.' |
n |
string, 'pair' if both twins have answered, 'single' if not. |
numeric vector of weighted data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.