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

  Web crawlers need to estimate the frequency of changes to

web crawlers need to estimate the frequency of changes to web sites to maintain a current index for web searches.

  Hypothesis testing at multiple-populations

At the .01 significance level, can she conclude that there is a difference between how well the different tutorials work for the students?

  In a group of persons traveling in a bus 6 persons can

q1. out of a total of 120 musicians in a club 5 can play all the three instruments- guitar violin and flute. it so

  Mean time spent on paperwork by all managers

Also, the sample data appear to have a bell-shaped distribution. Construct the 95% confidence interval for the mean time spent on paperwork by all managers.

  Construct a 95 confidence interval for the average waiting

the macburger restaurant chain claims that customers mean waiting time is 3 minutes. the quality assurance department

  Reporting a two-tailed p-value

What test can be performed to compare the percentage of participants who developed abnormal triglyceride levels between the vitamin A and the trace group? Report a two-tailed p value.

  What is the probability that a randomly selected family

in a certain community 30 of the families own a dog and 20 of the families that own a dog also own a cat. it is also

  Is the correctness of the prediction different

Can people really identify their favorite brand of cola? Volunteers tasted Coca-Cola Classic, Pepsi, Diet Coke, and Diet Pepsi, with the results shown below.

  Regulation requires the measurement of contaminant flow

1.the daily flow rate of contaminant from an industrial plant is modeled by a normal random variable with a mean value

  Determining probability that fare will exceed a range

Based on this information, determinethe probability that specific fare will exceed $15.00?

  Sensitivity of minimum sample size to actual proportion

Inspect table produced in question 2 above. Comment on relative sensitivity of minimum sample size to actual proportion and to desired half width.

  Generate a sample from a target distribution

1. Write a general Metropolis or Metropolis-Hastings algorithm to generate a sample from a target distribution π, where π(x) ∝ x34(1 - x)38(2 + x)125. Use the proposal density as q(x, y) = 1 on the interval [0, 1].

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