I have the following data. I want to take "veh" variable, starting with its first value, copy it down the row so that output would be something like "veh2" variable. Also, value of "drv" variable should same across its "veh" number.
BEFORE:
veh drv
-------
1 2
2 2
3 1
1 1
2 1
1 2
3 1
2 3
1 1
. .
. .
. .
AFTER:
veh2 drv2
-------
1 2
2 2
2 2
1 1
2 1
2 1
3 1
3 1
3 1
. .
. .
. .
But I'm afraid that this will completely destroy the proportional of "drv" and "veh" variable. Is it possible to create rows (like "insert rows" in Excel) in SAS?
If you guys know or have any idea to manipulate the data while keeping the proportional of the variables would be greatly appreciated.
Thanks in advance.