What is a benefit of random effects models

Assignment Help Basic Statistics
Reference no: EM131037586

Project: Correlated Data Analysis

Use the dataset m4project2016.dta for this project. This dataset is from a clinical trial of the use of estrogen patches in the treatment of postnatal depression. A total of 61 women with major depression beginning within 3-months of childbirth and persisting up to 18-months postnatal were randomly assigned to estrogen treatment (n=34) or placebo (n=27). The Edinburgh postnatal depression scale (EPDS) was administered at baseline (pretreatment) and monthly for 6-months after treatment. The EPDS has possible scores from 0 to 30 with a score of 10 or greater interpreted as possible depression.

The objective is to determine whether the estrogen patch is effective at reducing depression compared with the placebo (use p < 0.05 to decide significance).

The dataset m4project2016.dtahas the following variables:

• subj - patient identifier
• group - treatment group, 1=estrogen and 0=placebo
• pre - baseline EPDS score
• dep1 to dep6 - EPDS scores for months 1 to 6

Data Management:

1. Missing values for EPDS scores are coded as "-9" in the dataset. Recode these to "."

2. Use the user-written program misschk to evaluate the patterns of missing data for EPDS measurements. Type "finditmisschk" in the command window to get the program and then install. Then type "help misschk" in the command window to get a window with instructions on using misschk. Use the command shown to generate patterns of missing data:
misschkpre dep1-dep6.

Describe what the missing data patterns for dep1 to dep6. What is a benefit of random effects models compared to repeated measures ANOVA or MANOVA for analyses with missing data?

3. Duplicate the baseline EPDS score as a variable called dep0. Keep both the original baseline variable (pre) and the new dep0 variable.

4. The repeated measurements are in wide format (dep0 to dep6). Reshape to a long format with a single variable depfor the EPDS measurements and a new variablemonth to indicate the month (also keeping the other variables pre, subj, and group). This is to be done using the reshapecommand in Stata.Create variable labels for all variables, and value labels for categorical variables. The project do-file should be clearly annotated for this step.

Descriptive Analysis:

5. Evaluate the bivariate association between intervention status and baseline EPDS scores using a two-sample t-test. Report the mean and standard deviation for the EPDS score and p-value.

6. Make a graph of mean EPDS score by intervention status by month using the following Stata commands (feel free to edit the commands to customize the graph). Describe/interpret the graph.

anova dep i.month#i.group
marginsi.month#i.group
marginsplot ,xlabel(,labsize(small)) ytitle("EPDS Score") xtitle("Month") ///
title("Mean EPDS Score by Month and Group") name(linear, replace)

7. Make a graph of individual EPDS profiles by month (spaghetti plot) for 8 intervention and 8 placebo subjects (randomly chosen) using the following Stata commands (feel free to edit the commands to customize the graph). Describe/interpret the graph.

set seed 19493 /* change the seed number to select different observations */
generaterandno = runiform() if month == 0
bysort group (month randno): generate flag = _n <= 8 if month == 0
bysort subj (randno flag): replace flag=flag[1]
sort subj month
twoway connected dep month if flag == 1, connect(L) by(group) ytitle("EPDS Score") ///
xtitle("Month") msize(vsmall) xlabel(,labsize(small)) ylabel(,labsize(small))

Regression Analysis:

8. Use a linear mixed effect model (xtmixedor mixed) to evaluate the changes in EPDS with treatment and time. Use the following terms/options in the model:

a. Include intervention status (use i.group).

b. Use time post-treatment as a categorical variable (use i.month).

c. Include interaction of group and time post-treatment (use i.month#i.group).

d. Pretreatment EPDS score (use pre).

e. Random effects for subjects.

f. Fit the model using restricted maximum likelihood (REML).

9. Use the margins command to generate the means and standard errors for EPDS by intervention status and time post-treatment. Put the results in a Table suitable for publication and write a description of the analysis and results.

Attachment:- m4project2016v13.rar

Reference no: EM131037586

Questions Cloud

History of worship from the patristic period-21 century : I need a 500 word paper in APA 6th edition format no plagiarism in-text citation and references on 20th century worship, with an introduction about the History of Worship from the Patristic Period-21 century.
Exponential random variable with parameter lambda : Assume that an office switchboard has five telephone lines. The time that a call arrives on each line is an exponential random variable with parameter Lambda. Calls arrive independently on the lines. Show that the time of arrival of the first call (i..
Two possible differential amplifier designs : Two possible differential amplifier designs are considered, one using BJTs and the other MOSFETs. In both cases, the collector (drain) resistors are maintained within ±2% of nominal value. The MOSFETs are operated at VOV =200 mV. What input offset..
A differential amplifier uses two transistors : A differential amplifier uses two transistors whose β values are β1 and β2. If everything else is matched, show that
What is a benefit of random effects models : Module 4 Project: Correlated Data Analysis HSC-731, spring 2016. Describe what the missing data patterns for dep1 to dep6. What is a benefit of random effects models compared to repeated measures ANOVA or MANOVA for analyses with missing data
Estimate the maximum solids concentration : Estimate total mass of solids (kg) mobilised from the site during and after construction for the same storm event
Identify the currencies of india and provide the spot price : Discuss strategies for protecting your business from risks related to currency fluctuation - Discuss your proposed Human Resources Management or staffing strategy for your business.
Leadership competence with appropriate femaleness : Women are faced with the problem of needing to bolster their leadership competence with appropriate "femaleness": Adopting behaviors such as individualized consideration and inspirational motivation is a promising approach to overcome these biased..
How much energy is stored in the flywheel : how much energy is stored in the flywheel at the end of 20 seconds?

Reviews

Write a Review

Basic Statistics Questions & Answers

  On which student score better relative to other students

A standard deviation of 12. If the data for both tests are normally distributed, on which test did the student score better relative to the other students in each class?

  Change the number from 39 to 16 and recalculate the

compute a 95 confidence interval for the population mean based on the sample 1 2 3 4 5 6 and 39. change the number from

  Lily estimates that her time to fall asleep each night is

lily estimates that her time to fall asleep each night is approximately exponentially distributed. it takes her an

  The sample space of equally likely outcomes for the

the sample space of equally likely outcomes for the experiment of rolling two fair dice is

  Calculate the estimate for the standard error of difference

a calculate the estimate for the standard error of difference between two independent means fornbsps12nbsp

  There are 10 employees in a particular division of a

there are 10 employees in a particular division of a company. their salaries have a mean of 80000 a median of 60000 and

  Construct a 90 confidence interval to estimate the average

a random sample of 21 ncaa division i mens basketball games during the 2009-2010 season had an average attendance of

  Discuss the various sampling methods we might use in

discuss the various sampling methods we might use in determining which items to include in a

  Ring of integral hamilton quaternions

Show that the map phi: H->M_2(C) defined by phi(a+bi+cj+dk)=(a+b(sqrt -1),c+d(sqrt-1);-c+d(sqrt-1),a-b(sqrt-1)) is a ring homomorphism. Calculate its kernel and describe its image. Ps. Here H is the ring of integral Hamilton Quaternions and M_2(C) ..

  Did the oldest cruise ship have the largest crew size

The times taken to assemble a car in a manufacturing plantfollow a normal distribution with a mean of 20 hours and a standard deviation of 2 hours. Use this information to answer the following questions. Show your working, including an appropriat..

  A doctor wants to know if there is a relationship between a

q1 a doctor wants to know if there is a relationship between a fathers weight and his first newborn sons weight.

  Determining hypothesis test-difference of proportions

The general social survey is an annual survey given to about 1,500 U.S. adults selected at random. Each year, the survey contains several questions meant to probe the respondents' views of employment.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd