allow data_extract_input to work with "interaction" variables

Abierto
#41 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
r

Línea de trabajo

Comienza leyendo la solución alternativa actual en tm_a_mmrm y, a continuación, inspecciona cómo data_extract_input, data_merge_module, data_extract_spec y select_spec representan las variables seleccionadas. Determina dónde deberían dividirse las selecciones de interacciones en sus variables componentes y verifica que una sola entrada pueda exponer la interacción mientras selecciona cada componente requerido de los datos.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
R
Estrellas
2
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pharmaverse/teal.transform

Todos los issues de pharmaverse/teal.transform

Issues similares

Más issues de R

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.