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

Documentation: vignettes/questionnaires.Rmd, variable not specified in by statement #1854

Closed
PavloChaika opened this issue Apr 7, 2023 · 0 comments · Fixed by #1860
Closed
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@PavloChaika
Copy link
Collaborator

PavloChaika commented Apr 7, 2023

Creating Questionnaire ADaMs
Time to Confirmed/Definitive Deterioration/Improvement

In following script we use DTHCAUS in filter condition for derived records, even though the variable is not specified in by statement of derive_summary_records function, hence will always be missing and expression will always be false.

derive_var_joined_exist_flag(
by_vars = exprs(USUBJID, PARAMCD),
order = exprs(ADT),
new_var = CDTDTHFL,
join_vars = exprs(CHGCAT1, ADY),
join_type = "after",
tmp_obs_nr_var = tmp_obs_nr,
filter = CHGCAT1 == "WORSENED" & (
CHGCAT1.join == "WORSENED" & ADY.join >= ADY + 7 |
tmp_obs_nr == max(tmp_obs_nr.join) & DTHCAUS == "PROGRESSIVE DISEASE")
)

@PavloChaika PavloChaika added documentation Improvements or additions to documentation Questionnaires labels Apr 7, 2023
@kaz462 kaz462 self-assigned this Apr 13, 2023
@kaz462 kaz462 linked a pull request Apr 13, 2023 that will close this issue
14 tasks
bms63 added a commit that referenced this issue Apr 24, 2023
Closes #1853 #1854 update example data for questionnaires vignettes
@bms63 bms63 closed this as completed Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Development

Successfully merging a pull request may close this issue.

3 participants