chuck cleland cclelandoptonlinenet 872008 621 luwis tapiwa diya wrote dear r users wondering anyone knows obtainsubset first andor last record subject longitudinal setup normally sas one uses firstvariable1 lastvariable1 question r way regards combination aggregate head tail librarynlme aggregateoxboys1 listsubject oxboyssubject head n1 subject age height occasion 1 10 1 1262 1 2 26 1 1322 1 3 25 1 1355 1 4 9 1 1327 1 5 2 1 1369 1 6 6 1 1424 1 7 7 1 1413 1 8 17 1 1349 1 9 16 1 1428 1 10 15 1 1375 1 11 8 1 1417 1 12 20 1 1465 1 13 1 1 1405 1 14 18 1 1455 1 15 5 1 1458 1 16 23 1 1445 1 17 11 1 1425 1 18 21 1 1439 1 19 3 1 1500 1 20 24 1 1478 1 21 22 1 1474 1 22 12 1 1499 1 23 13 1 1489 1 24 14 1 1516 1 25 19 1 1569 1 26 4 1 1557 1 aggregateoxboys1 listsubject oxboyssubject tail n1 thu 07 aug 2008 065908 0400 r obtaining first last record subject longitudinal study