@Kurt_Bremser , should the proc transpose go after the data step? Also, does anyone know how to shorten this code? The dx runs from 1 to 18. I need to flag when the CO hospitalization was fire-related, non-fire
In addition, the optional “operational” suffixes INVERSE and TRANSPOSE can be added to the mix: VIEWINVERSE is useful for determining camera locations in WORLD coordinates, for example (while an un-inverted VIEW matrix would move points the opposite way, from WORLD coordinates into VIEW coordinat...
6299 Example 78.2: Cluster Analysis of Flying Mileages between Ten American Cities This example uses distance data and illustrates the use of the TRANSPOSE procedure and the DATA step to fill in the upper triangle of the distance matrix. A data set containing a table of flying mileages between...
Sometimes its better to transpose your data (or in your case not transpose) and process in by rather than with an array that goes across the data. using the by will allow you to summarize things in some more automated fashions. I'm not sure if you know about BY processing, but usually...
797 Example 13.2: Unreplicated Factorial Experiments Factorial experiments are useful for studying the effects of various factors on a response. For the practitioner constrained to the use of OLS regression, there must be replication to estimate all of the possible main and interaction effects in a...