100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
BRM2 - STATA EXAMPLES FROM LECTURES WITH (THEORY) EXPLANATION $3.69   Add to cart

Class notes

BRM2 - STATA EXAMPLES FROM LECTURES WITH (THEORY) EXPLANATION

 26 views  1 purchase
  • Course
  • Institution
  • Book

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

Preview 3 out of 24  pages

  • January 30, 2021
  • 24
  • 2020/2021
  • Class notes
  • Snijders
  • All classes
avatar-seller
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.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller BakedToast. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $3.69. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

64438 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$3.69  1x  sold
  • (0)
  Add to cart