Our Services

Get 15% Discount on your First Order

[rank_math_breadcrumb]

STATA analysis

simple task in stata anaysis 

Homework 5: Non-Linear Regression

(Due: 8:50am CST, Nov 29, 2024)

Let’s suppose you are interested in how life satisfaction is associated with internet use, age, gender, and marital status (i.e., married vs. non-married) for older adults (or how older adults’ internet use, age, gender, and marital status influence life satisfaction).

You set up your research question in the following model:

(Eq. 1)

To examine your research question empirically, you figured out that the Health and Retirement Study (HRS) is the secondary data that best suits your goal. Thus, you want to work with 2018 HRS core data.

        
1. Please go to the following web: 
        
2. Download the relevant files (e.g., h18sta.zip files… ).
        
3. In 
            Section LB: Leave Behind Questionnaires (Respondent), you want to take the information about life satisfaction. Use the relevant dta file and keep only three variables: 
            hhid, pn, and QLB002C. 
        
        
        
HHID         HOUSEHOLD IDENTIFICATION NUMBER
Section: LB  Level: Respondent      Type: Character  Width: 6   Decimals: 0
        
...........................................................................
  17146           010003-959738. Household Identification Number
        
            
        


        
PN           RESPONDENT PERSON IDENTIFICATION NUMBER
Section: LB  Level: Respondent      Type: Character  Width: 3   Decimals: 0


        
...........................................................................
          9738         010. Person Identifier
           654         011. Person Identifier
            32         012. Person Identifier
             1         013. Person Identifier
          5480         020. Person Identifier
           180         021. Person Identifier
            21         022. Person Identifier
             1         023. Person Identifier
           353         030. Person Identifier
            44         031. Person Identifier
             3         032. Person Identifier
             1         033. Person Identifier
           586         040. Person Identifier
            47         041. Person Identifier
             4         042. Person Identifier
             1         043. Person Identifier


        

        
QLB002C                       Q02C. SATISFIED WITH LIFE
Section: LB  Level: Respondent      Type: Numeric    Width: 1   Decimals: 0
Please say how much you agree or disagree with the following statements. (Mark (X) one box for each line.)
         
         I am satisfied with my life.


        
   ....................................................................
           262           1. STRONGLY DISAGREE
           323           2. SOMEWHAT DISAGREE
           348           3. SLIGHTLY DISAGREE
           362           4. NEITHER AGREE OR DISAGREE
           734           5. SLIGHTLY AGREE
          1841           6. SOMEWHAT AGREE
          1774           7. STRONGLY AGREE
         11502       Blank. INAP (Inapplicable); Partial Interview

4. Rename the variable QLB002C to life_sat.

5. Drop individuals who reported the missing (.) in life_sat variable.

6. Label the values of life_sat variable

1. STRONGLY DISAGREE
   2. SOMEWHAT DISAGREE
   3. SLIGHTLY DISAGREE
   4. NEITHER AGREE OR DISAGREE
   5. SLIGHTLY AGREE
   6. SOMEWHAT AGREE
   7. STRONGLY AGREE

7. Save the data, temp_lb_2018.dta.

8. In 
            Section W: Event History, Internet Use and Social Security (Respondent), you want to take the information about internet use. Use the relevant dta file and keep only three variables: 
            hhid, pn, and QW303.
        


        
HHID         HOUSEHOLD IDENTIFICATION NUMBER
Section: W   Level: Respondent      Type: Character  Width: 6   Decimals: 0


        
 .........................................................................
         17146           010003-959738. Household Identification Number


        
        
==========================================================================
            
        


        
PN           RESPONDENT PERSON IDENTIFICATION NUMBER
Section: W   Level: Respondent      Type: Character  Width: 3   Decimals: 0


        
...........................................................................
          9738         010. Person Identifier
           654         011. Person Identifier
            32         012. Person Identifier
             1         013. Person Identifier
          5480         020. Person Identifier
           180         021. Person Identifier
            21         022. Person Identifier
             1         023. Person Identifier
           353         030. Person Identifier
            44         031. Person Identifier
             3         032. Person Identifier
             1         033. Person Identifier
           586         040. Person Identifier
            47         041. Person Identifier
             4         042. Person Identifier
             1         043. Person Identifier


        
QW303        REGULAR USE OF WEB FOR EMAIL
Section: W   Level: Respondent      Type: Numeric    Width: 2   Decimals: 0
         Ref: EventHistory.W303_


        
Do you regularly use the Internet (or the World Wide Web) for sending and receiving e-mail or for any other purpose, such as making purchases, searching for information, or making travel reservations?
         User Note:  Interviewer-administered item.


        
...........................................................................
            14          -8. Web non-response
         10068           1. YES
          6911           5. NO
             9           8. DK (Don’t Know); NA (Not Ascertained)
            22           9. RF (Refused)
           122       Blank. INAP (Inapplicable); Partial Interview


        

9. Rename the variable QW303 to internet_use.

10. Drop individuals who reported the values -8, 8, and 9 of the “internet_use.”

11. Replace the value 5 (NO) with 0.

12. Save the data, temp_w_2018.dta.

13. Merge two data files, temp_lb_2018.dta and temp_w_2018.dta.

14. Keep individuals that are exactly matched (i.e., Keep individuals shown both in the master and using data).

15. Save the merged data, temp_merged_lb_w_2018.dta.

16. Please download the h18_trk.dta from Canvas and keep the variables: hhid, pn, qage, gender, and qmarst.

        
HHID         HOUSEHOLD IDENTIFICATION NUMBER
Section: W   Level: Respondent      Type: Character  Width: 6   Decimals: 0
        
                010003-959738. Household Identification Number
        
===========================================================================
        
PN           RESPONDENT PERSON IDENTIFICATION NUMBER
Section: W   Level: Respondent      Type: Character  Width: 3   Decimals: 0
        
        
QAGE                     AGE AT 2018 INTERVIEW
         Section: TR    Level: Respondent      Type: Numeric    Width: 3   Decimals: 0

999: Not applicable

GENDER           GENDER
Section: TR  Level: Respondent      Type: Numeric    Width: 1   Decimals: 0
        
...........................................................................
         19180           1.  Male
         24234           2.  Female
           144       Blank.  Unknown
        
        
QMARST       2018 MARITAL STATUS
Section: TR  Level: Respondent      Type: Numeric    Width: 1   Decimals: 0
        
This variable may not be completely consistent with core data. Corrections have been made to this variable based on cross-wave information. See Section 5B1 in the tracker data description for more information.
        
...........................................................................
          9758           1.  Married
          3625           2.  Separated/Divorced
          3024           3.  Widowed
          1343           4.  Never Married
           260           5.  Marital Status Unknown
         25548       Blank.  No core interview from household, or not in sample this wave

17. Rename the variable qage to age.

18. Drop individuals who reported 999 in the age variable.

19. Drop individuals who reported missing (.) in the gender variable.

20. Rename the variable qmarst to marital_st.

21. Drop individuals who reported 5 or missing (.) in the marital_st variable.

22. Generate an indicator variable for married (i.e., i_married) and code 1 if individuals reported 1 in the marital_st variable and 0 if individuals reported 2, 3, or 4 in the marital_st variable.

23. Save the data, temp_trk_2018.dta.

24. Merge two data files, temp_trk_2018.dta and temp_merged_lb_w_2018.dta.

25. Keep individuals that are exactly matched (i.e., Keep individuals shown both in the master and using data).

This time, instead of using the OLS method, you want to use
non-linear regression models.

26. Run the ordered probit regression to estimate (Eq. 1) above.

27. Interpret your estimate for internet_use.

28. Run the ordered logit regression to estimate (Eq. 1) above, and get the estimates of odds ratio (i.e., use the “or” option in the ologit command).

29. Interpret your estimate for internet_use.

30. Your null hypothesis: Gender does not affect life satisfaction. Based on your ordered logit estimate for gender in Q28, test your hypothesis
using the 95% confidence interval.

31. Visualize the conditional predicted probability of each response category (1. SDA, … 7. SA) for individuals who are female and aged between 20-80.

Submit your 1) do file and 2) MS Word document.

4

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

4/6pg

Your company Acme Logistics has recently been experiencing some thefts of equipment during the business day. All employees have been asked about the thefts and no one is claiming that they are responsible. Your facilities has three doors that are not locked during business hours and currently have no identification

Computer program

Kenya Forestry College [email protected] P.O. BOX 8 -20203, Londiani Tel .No.0202349901, 07232262 APPLICATION FOR TRAINING PROGRAMMES 2019/2020 Applications are invited for the following training programmes to be offered at Kenya Forestry College, Londiani commencing on the given dates. S/ n Programme Entry Requirements Duration Commencement Date Total Cost (Ksh) 1

Wk5_492

Need help with a question. Imagine that you are hired as an Ethical Hacking Consultant by your organization. You are asked by the top management to compare two object-oriented programming languages and create a presentation about your findings and suggestions. Use your problem-solving skills and  integrate your knowledge of web application testing

Computer Science

What is computer science  Science? what is the benefit of computer science?

6/8p

Running head: GUIDED IMAGERY AND PROGRESSIVE MUSCLE RELAXATION 2 Research Paper Topic: · Legal and legislative issues associated with biometric industry Instructions: · Prepare a 6-8 page paper in Microsoft Word using approved APA format. · The minimum page count cannot not include your Title page and Reference list. ·

week 7 Discussion and Replies

Please review the instructions for the assignment     WK7 Discussion Instructions: Database Failures and Timestamp Protocol  250 words total, answer the questions below with 4 evidence base scholarly articles. APA format, due 19 Dec 24.  1. Discuss the different types of failures. What is meant by catastrophic failure? 2.

Capstone B

Assessment 1 & 4 This file is too large to display.View in new window

hrmt

  how can organizations address change management in the workplace such that healthy stress is created? Be creative in your answer! You may find appropriate articles at the end of each chapter, and/or identify articles through the APUS online Library. Finally, be sure that all discussions are answered in full,

help

can u build a project for me based on the description given  below

help

can u build a project for me based on the description given  below

apple vs fbi

read this article Explain, based on the article and additional research, whether you agree with the FBI or Apple and why. Describe a possible compromise to the issue for future cases that would allow the investigation to continue. Take a position on whether technology is moving too fast for the

excel module 3

who can complete homework  assignment  by 4pm today  excel module 3 Documentation Shelly Cashman Excel 2019 | Module 3: SAM Project 1a Raybridge Recruiting CREATE A SALES REPORT Author: Theresa Cobb Note: Do not edit this sheet. If your name does not appear in cell B6, please download a new

excel module2

who can complete this assignment by 4pm today  Documentation Shelly Cashman Excel 2019 | Module 2: SAM Project 1a Roadrunner Online FORMAT WORKSHEETS Author: Theresa Cobb Note: Do not edit this sheet. If your name does not appear in cell B6, please download a new copy of the file from

Excel module 1

can anyone complete this ASAP or by tomorrow Documentation Shelly Cashman Excel 2019 | Module 1: SAM Project 1a New Era Medical COMPLETE A BUDGET SUMMARY WORKSHEET Author: Theresa Cobb Note: Do not edit this sheet. If your name does not appear in cell B6, please download a new copy

bcis

IfSuccessful_Status GA_Status_Icon SAM_Logo true false ID FirstName LastName AssignmentGUID UserID false rohan maharjan {308B14B0-E32E-42D1-BE7D-54EE2E09B8CD} {308B14B0-E32E-42D1-BE7D-54EE2E09B8CD} ID FirstName LastName ProjectName SubmissionNum MaxScore Score EngineVersion ID StepNumber Description IfSuccessful StepScore StepMaxScore ErrorText ActionName StepActionOrder ConsultantID FirstName Last 110345 Jenette Masterson 110347 Victorina Hogg 110349 Marguerite Hathcock 110351 Sid Ortiz 110352 Glenn Testani

WK6 Discussion

Please see attachment instructions to complete the assignment.     WK6 Discussion Instructions: Cost Functions and Record Lengths    250 words total, answer the questions below with 4 evidence base scholarly articles. APA format, due 15 Nov 24.  1. Discuss the different types of parameters that are used in cost

Enterprise Networking

ICT3051 Enterprise Networking Week-8 Laboratory Practicum 1 Configuring Quality of Service Task Use the following video to configure your own packet tracer file. Make sure everything in it works. Name the file with your name and student id. Reflect on the configuration experience by explaining what kind of problems you

Scott Tyree (2002)

You have been asked to conduct research on a past forensic case to analyze how digital data was used to solve the case Scott Tyree (2002). Summarize the case, pertinent actors, evidence, and facts. Outline the specific digital evidence used in the case. Describe the procedures and tools used to