100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

BRM2 - STATA EXAMPLES FROM LECTURES WITH (THEORY) EXPLANATION

Rating
-
Sold
1
Pages
24
Uploaded on
30-01-2021
Written in
2020/2021

***** All notes taken from the lectures of BRM2. This file contains all examples with the theoretical explanation included. The notes are mainly from all the lectures, some are also from the book. I also uploaded a summary of the theoretical part! For questions, you can e-mail

Show more Read less
Institution
Course










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

Connected book

Written for

Institution
Study
Course

Document information

Uploaded on
January 30, 2021
Number of pages
24
Written in
2020/2021
Type
Class notes
Professor(s)
Snijders
Contains
All classes

Subjects

Content preview

Behavioural Research Methods
2020
All Lecture Examples of STATA




BakedToast
EINDHOVEN UNIVERSITY OF TECHNOLOGY

,EXAMPLE LECTURE 3:
Example 1: Is there a relation between gender and transportation




Observed – Expected

Gives:




1.1 DOING A CHI2 TEST:
For calculating a probability, we need a test statistic: Chi2.
This


… is X2 and X2 is a measure for how (un) likely it is to find these data under H0.

- We would not expect this number to be zero, that would mean that all cell frequencies are exactly
equal to what we would expect
- It cannot be negative, as we squared all differences
- The larger the table, the larger this number, by definition
- Following the reasoning of hypothesis testing
o If H0 would be true (so in example case: no relation) what would be the probability of getting
X^2 = 8.9153 (or even larger).
o To calculate the answer for that question, we need to know the distribution of X^2



Option 1.1.1: When P > 0.05:




We get this, so the P-value is 0.063, so given that there is no relation (H0), the probability of finding
this result (or more extreme) is 0.063. So, the effect is not significant, because p = 0.063 and 0.063 >

, 0.05, we do not reject H0. In other words, there is no evidence for a relation between gender and
means of transportation according to this example.

From the Chi2 value to the p-value: We have 4 (look at the chi2(4)) degrees of freedom (k), so follow
the blue line in the graph and then apparently there is 6.3% of the probability density right of 8.9153
→ p-value!!!



Option 1.1.2: When P < 0.05
Is there a difference in the use of bike vs train across boys and girls?

• Type tab female travel12tue if travel12tue == 2 | travel12tue ==4, chi2
o ! Check the double =-sign !
o Now you perform a test on
selected means of
transportation
• Results →
• P<0.05, we reject H0, we found
evidence that girls are more likely
to take the bike over the train
compared to boys.



1.2: FISHER’S EXACT PROCEDURE
1. The list with all possibilities:




GIVEN DATA




2. Which of these are further away from H0 than the actual data
3. Calculate the probability that you get this exact result plus the more extreme results



The sum of probabilities is the p-value.

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.
BakedToast Technische Universiteit Eindhoven
Follow You need to be logged in order to follow users or courses
Sold
19
Member since
4 year
Number of followers
17
Documents
12
Last sold
1 year ago
Psychology &amp; Technology - Bachelor

As I'm finishing up my bachelors, I uploaded summaries I made during the past years.

4,3

3 reviews

5
1
4
2
3
0
2
0
1
0

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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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