ClimMobTools: API Client for the 'ClimMob' platform in R

library("ClimMobTools")
library("PlackettLuce")

Overview

ClimMobTools is the API client for the 'ClimMob' platform in R. ClimMob is open-source software for decentralized large-N trials using the 'tricot' approach[@vanEtten2019tricot]. This approach facilitates the rapid assessment of technologies in target environments. Tricot turns the research paradigm on its head: instead of a few researchers designing complicated trials to compare several technologies in search of the best solutions, it enables many participants to carry out reasonably simple experiments that, taken together, can offer even more information.

Usage

The breadwheat dataset is a dataframe from crowdsourced citizen science trials of bread wheat (Triticum aestivum L.) varieties in India. This sample data is available on the ClimMob platform and can be fetched using the getDataCM() function from ClimMobTools, along with an API key from the ClimMob user's account.

library("ClimMobTools")
library("PlackettLuce")

# the API key
key <- "d39a3c66-5822-4930-a9d4-50e7da041e77"

dat <- getDataCM(key = key,
                 project = "breadwheat",
                 userowner = "gosset",
                 pivot.wider = TRUE)


names(dat) <- gsub("firstassessment_|package_|lastassessment_|registration_", "",
                   names(dat))

Tricot data into rankings

The Plackett-Luce model is one approach to analyze the ClimMob data[@Turner2020]. We build the farmers' rankings as an object of class rankings from the package PlackettLuce. We build the rankings using the function rankTricot().

R = rankTricot(dat, 
                items = c("item_A","item_B","item_C"), 
                input = c("overallperf_pos","overallperf_neg"))

mod = PlackettLuce(R)

summary(mod)

For more analytical insights, please visit the documentation of the gosset package.

References



Try the ClimMobTools package in your browser

Any scripts or data that you put into this service are public.

ClimMobTools documentation built on April 4, 2025, 2:34 a.m.