Hello everyone!
I require assistance for expand command.
My data consists of the following in respect of US states.
state name, year, month of the year, product description code, and monthly tax rate.
There are:
45 states
6 years,
12 months for each of the year
15 products
I want to add two new states to the variable "state name" in my data set using the expand command so that they have a similar observations structure to the existing 45 states, and I can then make changes.
I studied the stata manual. I understand that expand command will not work for string variables like "state name." But not sure how using the destring command would help me.
Thank you
I require assistance for expand command.
My data consists of the following in respect of US states.
state name, year, month of the year, product description code, and monthly tax rate.
There are:
45 states
6 years,
12 months for each of the year
15 products
I want to add two new states to the variable "state name" in my data set using the expand command so that they have a similar observations structure to the existing 45 states, and I can then make changes.
I studied the stata manual. I understand that expand command will not work for string variables like "state name." But not sure how using the destring command would help me.
Thank you

Comment