0% found this document useful (0 votes)
38 views14 pages

Nested Design (Class Discussion Training School Data)

Uploaded by

kat scott
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views14 pages

Nested Design (Class Discussion Training School Data)

Uploaded by

kat scott
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

The engineer decides to test all three plate materials at three temperature

levels: 15 (low), 70 (medium), and 125°F (high) because these temperature levels are
consistent with the product end-use environment. Four batteries are tested at each
combination of plate material and temperature, and all 36 tests are run in random
order. The experiment and the resulting observed battery life data are given in the next
table.
To study the variability in CO2 emission rate by global regions 4 countries: US, Britain,
India, and Australia were chosen. From each country, 3 major cities were chosen and
the emission rates for each month for the year 2024 were collected.
A research team interested in the lifestyle of high school students conducted a study to
compare the activity levels of high school students across the 3 geographic regions in
the United States, Northeast (NE), Midwest (MW), and the West (W). The study also
included the comparison of activity levels among cities within each region. Two school
districts were chosen from two major cities from each of these 3 regions and the
response variable, the average number of exercise hours per week for high school
students for each school district was recorded.
A large manufacturing company operates three regional training schools for mechanics,
one in each of its operating districts. The schools have two instructors each, who teach
classes of about 15 mechanics in three-week sessions. The company was concerned
about the effect of school (factor A) and instructor (factor B) on the learning achieved.
To investigate these effects, classes in each district were formed in the usual way and
then randomly assigned to one of the two instructors in the school. This was done for
two sessions, and at the end of each session a suitable summary measure of learning for
the class was obtained
DATA trschool;
INPUT SCORE SCHOOL INSTRUCTOR OBS;
cards;
25 1 1 1
29 1 1 2
14 1 2 1
11 1 2 2
11 2 1 1
6 2 1 2
22 2 2 1
18 2 2 2
17 3 1 1
20 3 1 2
5 3 2 1
2 3 2 2
;
run;
proc format;
value schlfmt
1='1=Atlanta'
2='2=Chicago'
3='3=San Francisco';
run;
data trschool;set trschool;
format school schlfmt.;
run;
Proc print data=trschool;
Run;
proc means data=trschool;
class school INSTRUCTOR;
var SCORE;
title 'data summary';
run;
PROC GLM data = trschool;
CLASS SCHOOL INSTRUCTOR;
MODEL SCORE = SCHOOL INSTRUCTOR(SCHOOL);
run;
PROC GLM data = trschool;
CLASS SCHOOL INSTRUCTOR;
MODEL SCORE = SCHOOL INSTRUCTOR(SCHOOL);
lsmeans INSTRUCTOR(SCHOOL)/slice=school cl alpha=.1;
run;

/* To determine in WHICH school’s effects are significant*/


proc glm data=trschool;
class instructor school;
model score=school instructor(school)/solution;
lsmeans school/adjust=tukey pdiff cl alpha=.1;
run;
OR
PROC GLM data = trschool;
CLASS SCHOOL INSTRUCTOR;
MODEL SCORE = SCHOOL INSTRUCTOR(SCHOOL);
MEANS SCHOOL / TUKEY CLDIFF ALPHA=0.10;
run;
/* To determine in WHICH schools the instructor effects are
significant*/
proc glm data=trschool;
class instructor school;
model score=school instructor(school);
lsmeans instructor(school)/alpha=.03333 slice=school cl pdiff;
run;
proc glm data=trschool;
class instructor school;
model score=school instructor(school)/solution;
contrast 'Instructors in Atlanta' instructor(school) 1 -1 0 0 0 0;
contrast 'Instructors in Chicago' instructor(school) 0 0 1 -1 0 0;
contrast 'Instructors in San Fran' instructor(school) 0 0 0 0 1 -1;
run;

You might also like