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

  To avoid any high-speed imbalance in a rotating shaft it

to avoid any high-speed imbalance in a rotating shaft it needs to have a variance of its diameter below 0.0004 mm2. the

  Least squares regression to predict amount spend

Super Markets, Inc. is considering expanding into the Scottsdale, Arizona, area. Ms. Luann Miller, Director of Planning, must present an analysis of the proposed expansion to the operating committee of the board of directors.

  What is the standard error of the difference in means

A researcher posed a null hypothesis that there was no significant difference between boys and girls on a standard memory test. She randomly sampled 100 girls and 100 boys in a community and gave them the standard memory test. What is the standard..

  She obtained a random sample of n 25 drivers in the

the average age for licensed drivers in a county is micro 42.6 ? 12 and the distribution is approximately normal. a

  What is the average and sd of the new list

The average of a list of 12 numbers is 9 and the SD is equal to 3. If the numbers 6 and 12 are included with this list of numbers, what is the average and SD of the new list

  Suppose we watch the price of the dow jones industrial

suppose we watch the price of the dow jones industrial index for three days.assume there is a 6040 chance that the

  1regular exercise is supposed to make your heart stronger

1.regular exercise is supposed to make your heart stronger and lower the resting pulse rate. 91 individuals reported

  Salaries of 40 college graduates who took a statistics

salaries of 40 college graduates who took a statistics course in college have a mean of 62 200. assuming a standard

  The vp of sales at widgecorp who is comfortable with

deliverable length 500-1000 wordscompany w is testing a sales software package. their sales force of 500 people is

  Variables which are roughly normally distributed

Which of the variables below do you think will be roughly normally distributed? Please select all that apply.

  Standard error of the difference

If two randoom samples of sizes n1 = 30 and n2 = 36 are selected independently from two populations with mean 78 and 85, and with standard deviations 12 and 15, respectively, then the standard error of the difference between Xbar1 and Xbar2 are eq..

  Find the regression equation

How can we take this "chart" and use it to find the Regression Equation? What is the equation?

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