brinson {pa} | R Documentation |
Creating an object of either class brinson or class brinsonMulti
Description
Conduct Brinson analysis for equity portfolio attribution. Create a
class object of either brinson
for a single-period data set or
brinsonMulti
for a multi-period data set.
Usage
brinson(x, date.var = "date", cat.var = "sector", bench.weight =
"benchmark", portfolio.weight = "portfolio", ret.var = "return")
Arguments
x |
A data frame containing the data from which brinson analysis will be conducted. |
date.var |
A character vector which indicates the name
of the column in |
cat.var |
A character vector which indicates the name of the
column in |
bench.weight |
A character vector which indicates the name of the
column or columns in |
portfolio.weight |
A character vector which indicates the name of the
column or columns in |
ret.var |
A character vector which indicates the name of the
column in |
Value
Return an object of class brinson
when there is only one unique
date in the data frame x
. Otherwise, an object of class
brinsonMulti
is returned.
Author(s)
Yang Lu Yang.Lu@williams.edu
Examples
## Single-period brinson analysis
data(jan)
p1 <- brinson(x = jan, date.var = "date", cat.var = "sector",
bench.weight = "benchmark", portfolio.weight = "portfolio", ret.var =
"return")
summary(p1)
## Multi-period brinson analysis
data(quarter)
p2 <- brinson(x = quarter, date.var = "date", cat.var = "sector",
bench.weight = "benchmark", portfolio.weight = "portfolio", ret.var =
"return")
summary(p2)