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

Wk4_300

Need help with a question. Due 3/10/2025 @ 9PM n the Week 4 labs, you performed tasks such as creating a cluster, restoring files, configuring account lockout policies, and verifying RAM usage.  Note: Ensure you have completed all lab exercises from Week 4 before completing this assessment. Assessment Details Write a 350-

Event Khusus dan Promosi di Witching Pot

“Saya sangat puas dengan pengalaman taruhan di situs ini. Setiap elemen, dari navigasi hingga pembayaran, berjalan dengan mulus. Ini menunjukkan profesionalisme dan kualitas layanan mereka. Saya pasti akan kembali lagi!”

Business/computer

Isolation Discussion Thread: Cybersecurity — Layering-Abstraction-Process Isolation The NSA has identified what they call the First Principles of cybersecurity. The following lists three of these: Principle Last Name Starts With Layering A through H Abstraction I through Q Process Isolation R through Z For your discussion, describe the principle assigned

D 3 of 459

 Building Block Technologies    What is an operational technology?  How is it similar or different than Consumer IoT? What emerging risks can you identify for an operational technology in a hypothetical utilities distribution monitoring & control environment (pipelines & transmission grids)?

D 2 of 459

  Follow the attach document to complete this work. Questions: 1. Consumer Internet of Things (IoT) has become ubiquitous and represents a major vector of cyber risk. Provide examples of consumer IoT that may be found in your own home (not sharing exact details is OK) 2. Provide a high

D 1 of 459

Follow the attach document to complete this work. Building Block Technologies   1. Software, Hardware, and Network Communications are considered building block technologies for enterprises. Define what they are, how they are used and give an example. 2. What are the most notable cyber risks for each type of building block?

D 8 0f 360

Follow the attach document to complete this work. International Cooperation for Cybersecurity   Prepare a 5- to 7-paragraph briefing statement that explains why wealthy nations and developing nations should work together to improve cybersecurity for the globally connected networks referred to as “the Internet.” Your statement should address the following.

D 7 of 360

Follow the attach document to complete this work. Policy Soup: Dealing with the Aftermath of a New Cybersecurity Policy   Prepare a 5 to 7 paragraph “Expert Opinion” for local government officials. This document should present a strategy for communicating with residents about a new “cybersecurity” policy that requires a

D 6 of 360

Follow the attach document to complete this work.  Partnerships for Improving State and Local Government Cybersecurity   Before you begin, read this report:  National League of Cities ( ) (Click the Download Report link at the bottom of the page) Prepare a briefing statement (3 to 5 paragraphs) for a group

D 5 of 360

Follow the attach instruction to complete this work. Background Briefing: How will the Governor’s Initiatives Improve Cybersecurity for the State’s Critical Infrastructures?   Discussion we transition from federal to state critical infrastructure. You are working for the Chief of Staff (CoS) for a newly elected Governor. The governor asked the

D 4 of 360

Follow the attach instruction to complete this work. Panel Presentation: Privacy Impact Assessments (PIA)  Coordinators of an upcoming conference, attended by federal government IT managers and staff, invited you to participate in a panel presentation about privacy. For this activity, prepare a 5 to 7 paragraph briefing statement which answers

Proj4-final

Project 4: Postmigration Activities  Step 1: Postmigration Activities Overview  Like any software development project, migration projects require careful planning to ensure success. This planning includes the postmigration testing and maintenance phase. Start this project by researching and planning the  postmigration activities that will be required to get BallotOnline’s migrated workloads in

Discussion-4

Discussion: Postmigration Approaches and Activities Contains unread posts Now that you have completed BallotOnline’s cloud migration, you will discuss the cloud postmigration activities and approaches. You should cover the following areas: · What is the business impact after the migration? · How will you manage service-level agreements in the cloud?

D 3 of 360

Follow the attach instructions to complete this work. How does FedRAMP help agencies ensure that Digital Government services are secure?   Must post first. Subscribe The format for your week 3 discussion is a backgrounder (“briefing paper”). Background papers are summaries of issues provided to help decision-makers/leaders/managers make decisions. Decision-makers

D 2 of 360

Follow the attach document to complete this work.  Briefing Statement: Security Implications of OPEN Data   Representatives from the  Joint Committee on Cybersecurity and Information Technology have asked you to provide a briefing as part of their “Cyber Scholars Day.” The committee is sponsoring this day of briefings and outreach for

D 1 of 360

Follow the attach document to complete this work. Growing Reliance on Digital Government Services   Your 1 discussion short paper assignment is to write a  workplace newsletter article. As you work on this type of discussion item, think about the newsletters you receive in your workplace. Are they engaging? Do they

Week 3 Discussion: PUMP Versus PMBOK® Guide Approach

I put the links to both the text and the PMBOK Guide, it is through my school library so it may not come up without my login at the botton of the instructions also in bold letters is the information to both the course text and the guide please let

wk 9 distance edu

PLEASE SEE IF YOU CAN LOOK UP THE READING IN THE FILE PORTION, I WAS NOT ABLE TO PULL IT UP UNFORTUNATELY!  After reading “Applying “Design Thinking” in the Context of Media Management EducationLinks to an external site.,” think about all aspects of learning online: activities, workload, faculty-to-learner communication, and