• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Econ 5 midterm ucsd Test Questions with All Correct Answers Updated.

Document preview thumbnail
Preview 2 out of 5 pages

use stata as calculator - Answer di or display help files - Answer help *** strings - Answer words, make sure to put quotation marks example: display "hello world" Check working directory - Answer pwd change working directory - Answer cd "/Users/nellyzerbib/Desktop/ECON POLI 5/data sets/week 2" use college_, replace how to quickly view variables - Answer use describe command how to see data - Answer br or browse to see descriptive statistics, so if binary do this to see the mean and see % true - Answer sum create command - Answer gen newvar = expression create binary variables - Answer gen newvar = (var=="othervar") newvar is new column, rows will be 1 if othervar is true and 0 if not true example: gen CA = (state=="CA") to test equality you need ==

Content preview

Econ 5 midterm ucsd Test Questions
with All Correct Answers 2025-2026
Updated.
use stata as calculator - Answer di or display



help files - Answer help ***



strings - Answer words, make sure to put quotation marks



example: display "hello world"



Check working directory - Answer pwd



change working directory - Answer cd "/Users/nellyzerbib/Desktop/ECON POLI 5/data
sets/week 2"



use college_mobility.dta, replace



how to quickly view variables - Answer use describe command



how to see data - Answer br or browse



to see descriptive statistics, so if binary do this to see the mean and see % true - Answer sum



create command - Answer gen newvar = expression



create binary variables - Answer gen newvar = (var=="othervar")



newvar is new column, rows will be 1 if othervar is true and 0 if not true

, if statement - Answer ex: sum income if age>18



sum mobility_rate if name == "UCSD"



What is a histogram? what is code - Answer distribution of numeric variable



code = histogram varname



what is binning data - Answer divide range into series of intervals



brackets is inclusive and parantheses is exlcuding



[60-70) is 60-69



titles - Answer title("wat")

xtitle

ytitle




example: histogram par_median, frac color(blue%40)

/// title("Distribution of Parental Income") xtitle("Parental Income") ytitle("Fraction of Schools")



what school has the maximum par_median? - Answer sum par_median

*max = 2000

br name if par_median == 2000



what is a unit of observation? - Answer the unit described by the data that one analyzes



so in the college_mobillity, it was instituition

Document information

Uploaded on
October 27, 2025
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TestSolver9
3.6
(181)
Sold
1019
Followers
131
Items
32220
Last sold
8 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions