Update TheoreticalFramework.Rmd

adjusted API codes