allow data_extract_input to work with "interaction" variables

Aperta
#41 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
r

Direzione di ricerca

Inizia leggendo il workaround corrente in tm_a_mmrm, quindi esamina come data_extract_input, data_merge_module, data_extract_spec e select_spec rappresentano le variabili selezionate. Determina dove le selezioni delle interazioni dovrebbero essere suddivise nelle variabili che le compongono e verifica che un singolo input possa esporre l’interazione selezionando al contempo ogni componente richiesta dai dati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

core

In teal.modules.clinical::tm_a_mmrm, one of the variables needed for the analysis allows for "interaction" terms. These are passed into the template in this form: variable1:variable2 or variable1*variable2.

If we are using a data_extract_input and data_merge_module, these variables do not exist in the data - but their component variables do (and they must).

What we need from data_extract_input is to optionally accept some split criteria to separate interaction selections into their component variables. Or maybe this has to be done at the data_merge_module level.

The goal is to enable something like this:

data_extract_spec(
  dataname = dataname,
  select =   select_spec(
    choices = c("BASE", "AGE", "SEX", "BASE:AVISIT")
  )
)

Such that the data_extract_input shows this in the module:

image

But is doing this behind the scenes (Show R Code):

image

Note how the "variables" being selected are BASE, AVISIT, and SEX (BASE:AVISIT has been split).

You may see the current workaround in tm_a_mmrm which currently uses 2 data_extract_inputs to accomplish this.

Provenance:

Creator: SUNDRELV
Lingua principale
R
Stelle
2
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pharmaverse/teal.transform

Tutte le issue di pharmaverse/teal.transform

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.