# 2-state Markov transition matrix to steady state
( P = matrix(c(.7,.4,.3,.6), 2) )
P %^% 50
# surround with parentheses if used in an expression
c(.2, .8) %*% (P %^% 50)
# Inverse square root
var(econ5) %^% -.5
Run the code above in your browser using DataLab