Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature][module] Multiple response strings #383

Open
tmelliott opened this issue Nov 27, 2024 · 1 comment
Open

[feature][module] Multiple response strings #383

tmelliott opened this issue Nov 27, 2024 · 1 comment
Assignees

Comments

@tmelliott
Copy link
Member

tmelliott commented Nov 27, 2024

There's an existing 'multiple response' module, but that requires data be in the form

varA varB varC
1 0 0
1 1 0
0 1 1

however often it's more like

var
A
A,B
B,C

The latest version of iNZightTools allows importing the latter, and splitting it into the former - however, the graphical/summary functionality is in iNZightPlots which we can't update in Lite (without a lot of work #287).

This is a request from a user, specifically in a situation where there are 100s of responses (ethnicity). I thought it might be easiest to create a dedicated module for analysing multiple response strings. Something like:

  1. choose variable containing delimited values
  2. specify delimiter
  3. convert variable to a multiple response variable - perhaps the rimu package or similar can help?
  4. then add in some basic graphics and summaries - perhaps with a multi-select box to choose which values to display? we can discuss further with the CaS team about their use-cases.

OR

Modifying the existing multiple response module (if the graphics/summaries available are adequate) and adding an extra option to split a string directly in the module - this is to prevent iNZightTools from adding 100s of binary variables to the dataset, which just makes working with the rest of the dataset pretty unfun.

@chrk623
Copy link
Member

chrk623 commented Jan 9, 2025

Maybe two tabs, binary and multiple? Each tab should also have column type checking, i.e., only show binary columns in the binary tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants