MouseEmpathy: Mouse Empathy

Description Format Source Examples

Description

Percentage of time spent stretching in three treatments of mice. Both condition and treatment code for the same variable.

Format

A data frame with 42 observations on the following 3 variables.

treatment

a factor with levels Both Writhing, Isolated, and One Writhing

percent.stretching

a numeric vector

trt

a factor with levels bw, isolated, and ow

Source

Langford, D.J., S.E. Crager, Z. Shehzah, S.B. Smith, S.G. Sotocinal, J.S. Levenstadt, M.L. Chande, D.J. Levitin, J.S. Mogill. 2006. Social modulation of pain as evidence for empathy in mice. Science 312: 1967-1970.

Examples

1
2
3
4
5
6
str(MouseEmpathy)

aov.fit <- aov(percent.stretching ~ treatment, data = MouseEmpathy)
summary(aov.fit)
lm.fit <- lm(percent.stretching ~ treatment, data = MouseEmpathy)
anova(lm.fit)

Example output

Loading required package: nlme
Loading required package: lattice
Loading required package: grid
Loading required package: mosaic
Registered S3 method overwritten by 'mosaic':
  method                           from   
  fortify.SpatialPolygonsDataFrame ggplot2

The 'mosaic' package masks several functions from core packages in order to add 
additional features.  The original behavior of these functions should not be affected by this.

Attaching package:mosaicThe following objects are masked frompackage:dplyr:

    count, do, tally

The following object is masked frompackage:Matrix:

    mean

The following object is masked frompackage:ggplot2:

    stat

The following objects are masked frompackage:stats:

    binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
    quantile, sd, t.test, var

The following objects are masked frompackage:base:

    max, mean, min, prod, range, sample, sum

'data.frame':	42 obs. of  3 variables:
 $ treatment         : Factor w/ 3 levels "Both Writhing",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ percent.stretching: num  36.7 81.1 66.7 66.7 44.4 54.4 63.3 62.2 58.9 50 ...
 $ trt               : Factor w/ 3 levels "bw","iso","ow": 1 1 1 1 1 1 1 1 1 1 ...
            Df Sum Sq Mean Sq F value  Pr(>F)   
treatment    2   4041  2020.5   6.674 0.00322 **
Residuals   39  11807   302.8                   
---
Signif. codes:  0***0.001**0.01*0.05.’ 0.1 ‘ ’ 1
Analysis of Variance Table

Response: percent.stretching
          Df  Sum Sq Mean Sq F value   Pr(>F)   
treatment  2  4040.9 2020.46  6.6736 0.003216 **
Residuals 39 11807.4  302.75                    
---
Signif. codes:  0***0.001**0.01*0.05.’ 0.1 ‘ ’ 1

abd documentation built on May 2, 2019, 2:14 p.m.