SAS frequently Used Code
- To convert all names of variables in a SAS dataset to lowercase
- To change the length of an existing variable in a SAS dataset
- To combine a summary dataset back to the original dataset
- To convert SAS data type
- To convert SAS XPORT file to SAS data file
- To create a variable from labels in a dataset
- To create group variables according to the position of observations
- To create multiple dataset from two variables in a dataset
- To create tab separated raw data from a SAS dataset
- To create two variables of "totobs" and "spell_fd" for "fd"(food stamp) by "hhid"
- To check a dataset using SAS functions
- To create a small random sample with N observations from a large dataset
- To output multiple dataset after merged
- To randomly select a sample using Ranuni function
- To read a raw data from website into SAS
- To replace missing data in master data with a matching observation in using dataset
- To run regression analysis with the same dependent variable and one independent variable at a time