The DO Loop

Statistical programming in SAS with an emphasis on SAS/IML programs
Analytics | Programming Tips
Rick Wicklin 0
Pi to the power of pi

Happy Pi Day! Every year on March 14th (written 3/14 in the US), people in the mathematical sciences celebrate "all things pi-related" because 3.14 is the three-decimal approximation to π ≈ 3.14159265358979.... The purpose of this day is to have fun, celebrate the importance of mathematics, and maybe learn a

Analytics | Learn SAS | Programming Tips
Rick Wicklin 0
An explicit formula for eigenvalues of an AR(1) correlation matrix

The first-order autoregressive (AR(1)) correlation structure is important for applications in time series modeling and for repeated measures analysis. The AR(1) model provides a simple situations where measurements (on the same subject) that are closer in time are correlated more strongly than measurements recorded far apart. The AR(1) model uses