Package 'xlsformfill'

Title: Create random data for xlsform questionnaires
Description: Create fake data for an xlsform for testing purposes
Authors: Martin Barner
Maintainer: Martin Barner <[email protected]>
License: GPL-3
Version: 0.1.0
Built: 2024-09-24 03:28:11 UTC
Source: https://github.com/mabafaba/xlsformfill

Help Index


generate data for an xlsform

Description

generate data for an xlsform

Usage

xlsform_fill(questions, choices, n)

Arguments

questions

the xlsform questions sheet as data frame

choices

the xlsform choices sheet as a data frame

n

the number of rows to generate


create sampling frame from kobo tool

Description

create sampling frame from kobo tool

Usage

xlsform_generate_samplingframe(choices, strata_list_names)

Arguments

choices

the kobo questionnaire choices sheet as a data.frame

strata_list_names

the choice list_name column values of the variables that together uniquely define each stratum

Value

a data frame with two columns: "strata": the names of the strata; all unique combinations of the choices in each provided strata list name, concatenated by two underscores ("__") "population": randomly generated population for each stratum (lognormal distribution with meanlog 10 and sdlog 1)