Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

% macro yates 3 s ( data , kk , n ) ; / * YATES ALGORITHM TO COMPUTE EFFECTS FOR A THREE - LEVEL

%macro yates3s(data,kk,n);
/* YATES ALGORITHM TO COMPUTE EFFECTS FOR A THREE-LEVEL EXPERIMENT */
data = input data step. see example at end for read in
kk = power of 3
= number of steps in the Yates Computations
= number of variables
n = length of data array =3^kk when full factorial, else n=fraction or block size */
%MACRO keeper;
keep %do i=0%to &kk; step&i %end;
%MEND; *DATA IS READ INTO c1-c&n; data yates; set &data; %keeper;
%put "Data"; *DEFINE COLUMN ARRAYS, ONE ADDITIONAL COLUMN FOR YATES STDZ EFECT IS ALLOWED FOR;
array s0(*) c1-c&n
%do j=1%to &n;
%do i=1%to &kk;
array s&i(&n)
s&i(&j)=0;
%end; %end;
%mend;

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions