property_simulator: Simulate properties based on the empricial distribution of...

Description Usage Arguments Value Examples

View source: R/property_simulator.R

Description

Simulate properties based on the empricial distribution of the original data and new words with frequency one

Usage

1
property_simulator(orig_data, new_words, number_subjects)

Arguments

orig_data

a data frame of size nx3 (id, concept, property). The empriical distribution is generated from this data

new_words

integer greater than 0, corresponding to the number of words with frequency one that should be added to the empirical distribution

number_subjects

number of subjects to be sampled. Each subject with generates new properties

Value

a vector with the extra number of participant to achieve the especific coverage, and the estimate of the number of unique properties listed by the new amount of suggested people

Examples

1
2
orig_data=data_paper[data_paper[,2]=="Decision",]
property_simulator(orig_data, 84, 15)

CPNCoverageAnalysis documentation built on Oct. 9, 2021, 5:06 p.m.