Do anyone know if first.variable/last.variable can be used to transpose data? For instance, I want to transform a long list of character variables to a single list by a group. Does that make sense and is this possible? Thanks!
No, they can't be used since they are not saved in the data set. They are temporary variables only.
Choices abound. The DATA step could copy the first. and last. variables to new variables which could be used later. Or, PROC TRANSPOSE could use a BY statement (perhaps the same BY statement that appears in the DATA step).
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.