library(mosaicCalc)
## 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: 'mosaic'
## The following objects are masked from 'package:dplyr':
## 
##     count, do, tally
## The following object is masked from 'package:Matrix':
## 
##     mean
## The following object is masked from 'package:ggplot2':
## 
##     stat
## The following objects are masked from 'package:stats':
## 
##     binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
##     quantile, sd, t.test, var
## The following objects are masked from 'package:base':
## 
##     max, mean, min, prod, range, sample, sum
## Loading required package: mosaicCore
## 
## Attaching package: 'mosaicCore'
## The following objects are masked from 'package:dplyr':
## 
##     count, tally
## 
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
## 
##     D
##         v1         v2 
## 0.32894737 0.09210526
## [1] 0.7894737 0.4736842 1.3157895
##      v1 v2
## [1,]  1  5
## [2,]  2 -2
## [3,]  4  0
##         v1         v2 
## 0.32894737 0.09210526
##           [,1]
## [1,] 0.7894737
## [2,] 0.4736842
## [3,] 1.3157895
##      (Intercept) v1 v2
## [1,]           1  1  5
## [2,]           1  2 -2
## [3,]           1  4  0
## A(Intercept)          Av1          Av2 
## 1.000000e+00 0.000000e+00 2.775558e-17
##      [,1]
## [1,]    1
## [2,]    1
## [3,]    1