hi can you help me how to derive locf bocf wocf below is the data i need dynamic code.
Please show, in the form of a working sas data step, the data from your sample, and then, also in the form of a sas data step, what you expect the result to look like. Help us help you.
I presume LOCF is last-obs-carried forward. What are BOCF and WOCF? "best" and "worst" obs carried forward? If so, what is your definition of best and worst? Also, is the AVAL variable the only one to be processed for LOCF, BOCF, and WOCF? It's the only one with a missing value, so it's the only one for which LOCF would have an impact.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.