Hi all,
I have a data set that looks as follows:
My goal is to re-order the observations in a specific way, such that productstype1 is "Deploy PLUS" if it exists, otherwise it is "Deploy" if it exists, otherwise it is "Advanced Local PLUS" if it exists...
And then productypes2 follows the same logic. I am having a hard time wrapping my brain around how to do this. Any help would be greatly appreciated.
Thanks,
Nick
I have a data set that looks as follows:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str32(productstype productstype2 productstype3 productstype4) str21 productstype5 "DIFM Enhanced" "Deploy" "Google Ads" "Marketer" "Originator Everywhere" "Advanced local PLUS" "Advanced Local PLUS" "ConversionPro Blog" "Local PLUS" "Presence" "DIFM Enhanced" "DIFM Starter" "Marketer" "SuperCalc" "Website" "Advanced Local PLUS" "ConversionPro Blog" "Marketer" "SuperCalc" "Website" "DIFM Starter" "Marketer Pro" "Listings + Reputation Management" "Presence" "Website" end
And then productypes2 follows the same logic. I am having a hard time wrapping my brain around how to do this. Any help would be greatly appreciated.
Thanks,
Nick
Comment