Does anyone know how to calculate the AICs?
Thank you for your cooperation.
The followings are sample commands.
Code:
capture ssc install postrcspline sysuse uslifeexp, clear mkspline2 ys = year, cubic nknots(3) des ys* reg le ys* adjustrcspline, /// addplot(scatter le year, msymbol(Oh)) /// ytitle("life expectancy (knots3)") graph export rcsknots3.tif, as(tif) replace capture drop ys* mkspline2 ys = year, cubic nknots(5) des ys* reg le ys* adjustrcspline, /// addplot(scatter le year, msymbol(Oh)) /// ytitle("life expectancy (knots5)") graph export rcsknots5.tif, as(tif) replace
0 Response to How to calculate AIC(Akaike's information criterion) for restricted cubic spline
Post a Comment