tests/summary.test.R

## summary.test.R
## Yang Lu [email protected]

library(pa)

## data(jan)
## b1 <- brinson(x = jan)
## truth <- summary(b1)
## data(quarter)
## b2 <- brinson(x = quarter)
## truth.multi <- summary(b2)
## save(truth, truth.multi, file = "summary.test.RData")


load("summary.test.RData")

## Single-period

data(jan)
b1 <- brinson(x = jan)
result <- summary(b1)
stopifnot(all.equal(result, truth))

## Multi-period

data(quarter)
b2 <- brinson(x = quarter)
result.multi <- summary(b2)
stopifnot(all.equal(result.multi, truth.multi))

Try the pa package in your browser

Any scripts or data that you put into this service are public.

pa documentation built on May 29, 2017, 11:44 a.m.