More Variables (Expressions and Variables)

Calculate GDP per capita for the US and then convert it to Euros. The GDP for the US is 30,490,000,000,000. The population of the US is 342,900,000. Use the echange rate from problem 2.

  • Clear any data you might have loaded in Stata.
  • Create an an new empty data set.
  • Create a variable gdp and assign it the GDP of the US.
  • Create a variable pop and assign it the population of the US.
  • Create a variable gdp_pc and assign it a value by dividing GDP by population.
  • Convert the value of gdp_pc into Euros and assign this value to a new variable.
  • Display the final answer to the screen.