pt.beta {YRmisc} | R Documentation |
Beta is the slope of a fitted line when dependent variable is the benchmark return and independent variable is an asset return of the same period. It is a measure the risk arising from exposure to general market movements.
pt.beta(ar,br)
ar |
:a vector of a risk asset return |
br |
:a vector of benchmark return |
brtn <- runif(100, -1, 1)
artn <- runif(100, -1, 1)
pt.beta(artn, brtn)