Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SAS coding HW Please modify the code below so it would run successfully. 1. PROC SORT DATA=DATABASE_S; BY RECORD_ID REDCAP_REPEAT_INSTANCE; RUN; DATA DAILYMON; SET DATABASE_S;

SAS coding HW

Please modify the code below so it would run successfully. 1. PROC SORT DATA=DATABASE_S; BY RECORD_ID REDCAP_REPEAT_INSTANCE; RUN; DATA DAILYMON; SET DATABASE_S; BY RECORD_ID; SUMSYMP=SUM(SYMPTOMS___1-SYMPTOMS___9, SYMPTOMS___11, SYMPTOMS___16); DO i=1 to 4; IF symptom[i]=1 THEN symptoms=1; IF LAST.RECORD_ID AND SYMPTOMATIC_IND=1 THEN LATEST_SYMP=1; ELSE LATEST_SYMP=0; RUN; PROC SQL; CREATE TABLE DAILYMONFIELDS AS RECORD_ID, MAX(SYMPTOMATIC_IND) AS SYMP_IND, MAX(DATE) AS LATEST_CHECKIN FORMAT MMDDYY10, FROM DAILYMON GROUP BY RECORD_ID; QUIT; PROC SQL; CREATE TABLE RECORD_DATES2 AS SELECT * FROM RECORD_DATES1 R LEFT JOIN DAILYMONFIELDS D ON R.RECORD_ID; QUIT; 2. Please describe 2-3 unique errors you see in the code below and how they might be fixed. DATA monitoring_complete; set export if final_outcome is complete=2; if redcap_repeat_instrument >= 1 then output answered; if recovery<&today then output lastday; if symptom_info = 0 then output is nosymptom; if case symptom_info=1 then output recoverypopulated; keep > 1; run;

3. What resources can you use when you don't know how to code something?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

7. Discuss the advantages of embedded learning.

Answered: 1 week ago