• 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 11 pages
Summary

Intermediate Statistics II Partial Summary

Document preview thumbnail
Preview 2 out of 11 pages

Full summary for partial exam, covers dummy coding, moderation and mediation.

Content preview

Intermediate Statistics II - Partial Exam
1. Dummy coding
2. Moderation analysis
3. Mediation analysis




Week 1: Dummy coding

Dummy coding → categorical variables with more than 2 categories (e: religion: buddhism,
christianism, prothesant) are coded into variables all of which have values of only 0 or 1.

Dummy coding steps
1. Dummy variables = number of variables minus 1 (n-1)
2. Choose one of your groups as baseline reference category (if not given it is usually the
control group)
3. Having chosen baseline, assign that group values of 0 for all your dummy variables
4. For first dummy variable, assign 1 to the first group you want to compare against
baseline, all others 0

, 5. Continue step 4 for each group, until you have no dummies left
6. Place dummy variables into regression analysis in the same block

Example: creating dummies for occupation with nurse as baseline (n-1).




→
​
Present the regression equation for a constant and the dummy variables

𝑦𝑖 = β0 + β1(𝑥1𝑖) + β2(𝑥2𝑖) + ..... β𝑘(𝑥𝑘𝑖) + ε𝑖
→ 𝐻𝑎𝑝𝑝𝑖𝑛𝑒𝑠𝑠𝑖 = β0 + β1(𝑓𝑖𝑛𝑎𝑛𝑐𝑖𝑎𝑙 𝑡𝑟𝑎𝑑𝑒𝑟𝑖) + β2(𝑝𝑖𝑎𝑛𝑖𝑠𝑡𝑖) + β3(𝑡𝑒𝑎𝑐ℎ𝑒𝑟𝑖) + ε𝑖
Where
- β0 = happiness of nurse (reference)
- β1 = difference in happiness of financial trader versus nurse
- β2 = difference in happiness of pianist versus nurse
- β3 = difference in happiness of teacher versus nurse


Present the regression equation (with coefficient values) for a constant and 3 dummies
𝐻𝑎𝑝𝑝𝑖𝑛𝑒𝑠𝑠 𝑜𝑓 𝑛𝑢𝑟𝑠𝑒 𝑖 = β0 + β1(𝑓𝑖𝑛𝑎𝑛𝑐𝑖𝑎𝑙 𝑡𝑟𝑎𝑑𝑒𝑟𝑖) + β2(𝑝𝑖𝑎𝑛𝑖𝑠𝑡𝑖) + β3(𝑡𝑒𝑎𝑐ℎ𝑒𝑟𝑖) + ε𝑖


1. 𝐻𝑎𝑝𝑝𝑖𝑛𝑒𝑠𝑠 𝑜𝑓 𝑛𝑢𝑟𝑠𝑒 𝑖 = β0 + 0 + 0 + 0
- 66.875 = β0


2. 𝐻𝑎𝑝𝑝𝑖𝑛𝑒𝑠𝑠 𝑜𝑓 𝑓𝑖𝑛𝑎𝑛𝑐𝑖𝑎𝑙 𝑡𝑟𝑎𝑑𝑒𝑟 𝑖 = β0 + β1(1) + β2(0) + β3(0)
- 35.625 = 66. 875 + β1
- -31.25 = β1


3. 𝐻𝑎𝑝𝑝𝑖𝑛𝑒𝑠𝑠 𝑜𝑓 𝑝𝑖𝑎𝑛𝑖𝑠𝑡𝑖 = β0 + β1(0) + β2(1) + β3(0)
- 60.625 = 66.875 + β2
- -6.25 = β2


4. 𝐻𝑎𝑝𝑝𝑖𝑛𝑒𝑠𝑠 𝑜𝑓 𝑡𝑒𝑎𝑐ℎ𝑒𝑟 𝑖 = β0 + β1(0) + β2(0) + β3(1)
5. 57.500 = 66.875 + β3
6. -9.375 = β3

Document information

Study
Uploaded on
November 30, 2022
Number of pages
11
Written in
2021/2022
Type
Summary
$12.72

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.
irisbakouli
4.0
(1)
Sold
17
Followers
7
Items
23
Last sold
8 months 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