randomise: Randomised group of items

Description Usage Arguments Value Examples

View source: R/randomise.R

Description

Set a randomised group of items for crowdsourcing citizen science. Generate designs for ranking of options. It is designed for tricot trials specifically (comparing 3 options), but it will also work with comparisons of any other number of options. The design strives for approximate A optimality, this means that it is robust to missing observations. It also strives for balance for positions of each option. Options are equally divided between first, second, third, etc. position. The strategy is to create a "pool" of combinations that does not repeat combinations and is A-optimal. Then this pool is ordered to make subsets of consecutive combinations also relatively balanced and A-optimal

Usage

1
randomise(ncomp = 3, nobservers = NULL, nitems = NULL, itemnames = NULL)

Arguments

ncomp

an integer for the number of items each observer compares

nobservers

an integer for the number of observers

nitems

an integer for the number of items tested in the project

itemnames

a character for the name of items tested in the project

Value

A dataframe with the randomised design

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ni <- 3
no <- 10
nv <- 4
inames <- c("mango","banana","grape","apple")

randomise(ncomp = ni,
          nobservers = no,
          nitems = nv,
          itemnames = inames)
          

kauedesousa/ClimMobTools documentation built on Feb. 14, 2020, 8:23 a.m.