# 2-state Markov transition matrix
( P = matrix(c(.7,.4,.3,.6), 2) )
# moving to steady state
P %^% 5
P %^% 10
# 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