File:Twin Study MZ discordant test of hypothesis that exercise protects against depression.png

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
Original file(750 × 750 pixels, file size: 68 KB, MIME type: image/png)

Summary

  1. R code to create

library(ggplot2); library(MASS) set.seed(1000) cov = -0 myCovariance = matrix(nrow = 2, c(1, cov, cov, 1)); xy = MASS::mvrnorm (n = 100, mu = c(0,0), Sigma = myCovariance); xy = data.frame(xy); names(xy) <- c("Exercise", "Depression"); qplot(y = Depression, x = Exercise, data = xy, geom = c("point", "smooth"), method = "lm", xlab = "MZ difference on Exercise", ylab = "MZ difference on Depression", main = "Does Exercise protect against Depression?" )

  1. Save as pdf, convert to png

"MZ discordant test of hypothesis that exercise protects against depression"

Licensing

Lua error in package.lua at line 80: module 'strict' not found.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:13, 15 January 2017Thumbnail for version as of 07:13, 15 January 2017750 × 750 (68 KB)127.0.0.1 (talk)<ol><li> R code to create</li></ol> <p>library(ggplot2); library(MASS) set.seed(1000) cov = -0 myCovariance = matrix(nrow = 2, c(1, cov, cov, 1)); xy = MASS::mvrnorm (n = 100, mu = c(0,0), Sigma = myCovariance); xy = data.frame(xy); names(xy) <- c("Exercise", "Depression"); qplot(y = Depression, x = Exercise, data = xy, geom = c("point", "smooth"), method = "lm", xlab = "MZ difference on Exercise", ylab = "MZ difference on Depression", main = "Does Exercise protect against Depression?" ) </p> <ol><li> Save as pdf, convert to png</li></ol> "MZ discordant test of hypothesis that exercise protects against depression"
  • You cannot overwrite this file.

The following page links to this file: