100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
27-10-2025
Written in
2025/2026

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 ==

Show more Read less









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

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

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

Get to know the seller

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 Webster University
View profile
Follow You need to be logged in order to follow users or courses
Sold
715
Member since
2 year
Number of followers
124
Documents
23877
Last sold
20 hours ago
TESTSOLVER9 STORE

TOPNOTCH IN LEARNING MATERIALS,(EXAMS,STUDYGUIDES NOTES ,REVIEWS,FLASHCARDS ,ALL SOLVED AND PACKAGED.OUR STORE MAKE YOUR EDUCATION JOURNEY EFFICIENT AND EASY.WE ARE HERE FOR YOU FEEL FREE TO REACH US OUT .

3.6

125 reviews

5
56
4
18
3
21
2
9
1
21

Recently viewed by you

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

Frequently asked questions