Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

B. Create a macro wrapper that adapts the program shown on the next page so that it can be used with any input and output

image text in transcribed
B. Create a macro wrapper that adapts the program shown on the next page so that it can be used with any input and output 5A5 data sets and any designated variable {i.e., replacing best) in the input 5A5 data set. The parameters of the macro must include the following items: It The name of the given 5A5 data set. i The name of the variable being summarized in the given 5A5 data set. I' The name of the new 5A5 data set of streak lengths. The new data set must have only two variables. The first variable in the new data set must have the same name and values as the summarized variable from the original data set, with one observation per run (i.e., per streak) of consecutive values in the order those runs occurred. The second variable in the new data set must be named _STREAK_. You may not assume that you know what other variable names are in the given data set, except that the designated variable to be summarized is not named _STREAK_. Apply your macro to the data set weeks_best.sas?bdat and use PROC PRINT to display the new data set

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

Wavelet Based Approximation Schemes For Singular Integral Equations

Authors: Madan Mohan Panja, Birendra Nath Mandal

1st Edition

0429534280, 9780429534287

More Books

Students also viewed these Mathematics questions

Question

preparing for and completing job interviews and considering offers.

Answered: 1 week ago

Question

Are your goals SMART?

Answered: 1 week ago