powered by
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)
:a vector of a risk asset return
:a vector of benchmark return
# NOT RUN { brtn <- runif(100, -1, 1) artn <- runif(100, -1, 1) pt.beta(artn, brtn) # }
Run the code above in your browser using DataLab