            fv = predictresults[:300,0]
            pv = predictresults[300:,1]
            pv_lb = predictresults[300:,2]
            pv_ub = predictresults[300:,3]
            pv_se = predictresults[300:,4]
            del predictresults

            # cases - in sample predict
            # n = -1, start = 0 (fitted values)
            self.FVOLSnneg1start0 = fv
            # n=-1, start=9
            self.FVOLSnneg1start9 = fv
            # n=-1, start=100
            self.FVOLSnneg1start100 = fv[100-9:]
            # n = 200, start = 0
            self.FVOLSn200start0 = fv[:192]
            # n = 200, start = 200
            self.FVOLSn200start200 = np.hstack((fv[200-9:],pv[:101-9]))
            # n = 200, start = -109 use above
            self.FVOLSn200startneg109 = self.FVOLSn200start200
            # n = 100, start = 325, post-sample forecasting
            self.FVOLSn100start325 = np.hstack((fv[-1],pv))
            # n = 301, start = 9
            self.FVOLSn301start9 = np.hstack((fv,pv[:2]))
            # n = 301, start = 0
            self.FVOLSdefault = fv
            # n = 4, start = 312
            self.FVOLSn4start312 = np.hstack((fv[-1],pv[:8]))
            # n = 15, start = 312
            self.FVOLSn15start312 = np.hstack((fv[-1],pv[:19]))


        elif not constant:
            self.params = [1.19582389902985, -0.40591818219637,
                           -0.15813796884843, 0.16620079925202,
                           -0.08570200254617, 0.01876298948686,
                           0.06130211910707, -0.08461507700047,
                           0.27995084653313]
            self.bse_stata = [.055645055, .088579237, .0912031179, .0909032462,
                    .0911161784, .0908611473, .0907743174, .0880993504,
                    .0558560278]
            self.bse_gretl = [0.0564990, 0.0899386, 0.0926027, 0.0922983,
                              0.0925145, 0.0922555, 0.0921674, 0.0894513,
                              0.0567132]
            self.rmse = 15.29712618677774
            self.sigma = 226.9820074869752
            self.llf = -1239.41217278661
# See note above
#            self.bic =  8.433861292817106
#            self.hqic =  8.367215591385756
#            self.aic =  8.322747818577421
            self.fpe =  241.0221316614273
            filename = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                "AROLSNoConstantPredict.csv")
            predictresults = np.loadtxt(filename)
            fv = predictresults[:300,0]
            pv = predictresults[300:,1]
            pv_lb = predictresults[300:,2]
            pv_ub = predictresults[300:,3]
            pv_se = predictresults[300:,4]
            del predictresults

            # cases - in sample predict
            # n = -1, start = 0 (fitted values)
            self.FVOLSnneg1start0 = fv
            # n=-1, start=9
            self.FVOLSnneg1start9 = fv
            # n=-1, start=100
            self.FVOLSnneg1start100 = fv[100-9:]
            # n = 200, start = 0
            self.FVOLSn200start0 = fv[:192]
            # n = 200, start = 200
            self.FVOLSn200start200 = np.hstack((fv[200-9:],pv[:101-9]))
            # n = 200, start = -109 use above
            self.FVOLSn200startneg109 = self.FVOLSn200start200
            # n = 100, start = 325, post-sample forecasting
            self.FVOLSn100start325 = np.hstack((fv[-1],pv))
            # n = 301, start = 9
            self.FVOLSn301start9 = np.hstack((fv,pv[:2]))
            # n = 301, start = 0
            self.FVOLSdefault = fv
            # n = 4, start = 312
            self.FVOLSn4start312 = np.hstack((fv[-1],pv[:8]))
            # n = 15, start = 312
            self.FVOLSn15start312 = np.hstack((fv[-1],pv[:19]))


class ARResultsMLE(object):
    """
    Results of fitting an AR(9) model to the sunspot data using exact MLE.

    Results were taken from gretl.
    """
    def __init__(self, constant=True):
        self.avobs = 300
        if constant:

            # NOTE: Stata's estimated parameters differ from gretl
            filename = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                "ARMLEConstantPredict.csv")
            filename2 = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                    'results_ar_forecast_mle_dynamic.csv')
            predictresults = np.loadtxt(filename, delimiter=",")
            year = predictresults[:,0]
            pv = predictresults[:,1]
            dynamicpv = np.genfromtxt(filename2, delimiter=",", skip_header=1)

            # cases - in sample predict
            # start = 0 (fitted values)
            self.FVMLEdefault = pv[:309]
            # start=9
            self.FVMLEstart9end308 = pv[9:309]
            # start=100, end=309
            self.FVMLEstart100end308 = pv[100:309]
            # start = 0, end
            self.FVMLEstart0end200 = pv[:201]
            # n = 200, start = 200
            self.FVMLEstart200end334 = pv[200:]
            # start = 309, end=334 post-sample forecasting
            self.FVMLEstart308end334 = pv[308:]
            # end = 310, start = 9
            self.FVMLEstart9end309 = pv[9:310]
            # end = 301, start = 0
            self.FVMLEstart0end301 = pv[:302]
            # end = 312, start = 4
            self.FVMLEstart4end312 = pv[4:313]
            # end = 7, start = 2
            self.FVMLEstart2end7 = pv[2:8]

            self.fcdyn = dynamicpv[:,0]
            self.fcdyn2 = dynamicpv[:,1]
            self.fcdyn3 = dynamicpv[:,2]
            self.fcdyn4 = dynamicpv[:,3]


        else:
            pass



