traffic {CMHNPA} | R Documentation |
Traffic light data for different light sequences, intersections, and times of day.
data(traffic)
A data frame with 25 rows and four columns.
the amount of unused red-light time in minutes
the traffic light sequence
the intersection the treatment
was applied
the time of the day the treatment
was applied
A traffic engineer conducted a study to compare the total unused red-light time for five different traffic light signal sequences. The experiment was conducted with a Latin square design in which blocking factors were (1) five intersections and (2) five time of day periods.
Kuehl, R. (2000)
Kuehl, R. (2000). Design of Experiments: Statistical Principles of Research Design and Analysis. Belmont, California: Duxbury Press.
Best, D. J. and Rayner, J. C. W. (2011). Nonparametric tests for Latin squares. NIASRA Statistics Working Paper Series, 11-11.
attach(traffic)
np_anova(ordered_vars = rank(minutes),
predictor_vars = data.frame(treatment,intersection,time_of_day), uvw = 1)