I tried to get the follow_up year of my dataset. This survey was conducted every two years. Is there any code that works for this? Thanks!
Obs ID lle9 lle10 lle11 lle12 lle13 lle14 expect_results
1 1 . 0 0 0 1 . 6
2 2 0 0 0 . . 0 10
3 3 0 . . 0 . . 6
4 4 . 0 1 1 1 1 8
5 5 . . 0 . 1 4 6
6 6 0 . 1 . . 2 10
You have to walk us through the logic of how you get 6 or 10 or 8 or whatever. Probably in lots of details.
Especially since I see nothing there that is obviously a "year" to calculate what a "follow_up" year may be.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.