class_docstr: Wfs used for TestGlmPoissonOffset
  
  Results are from Stata and R.
class_docstr_tok: ["Wfs","used","for","TestGlmPoissonOffset","Results","are","from","Stata","and","R","."]
code: def __init__(self):
      self.resids = glm_test_resids.wfs_resids
      self.null_deviance = 3731.85161919  # from R
      self.params = [
          0.9969348,
          1.3693953,
          1.6137574,
          1.7849111,
          1.9764051,
          0.11241858,
          0.15166023,
          0.02297282,
          -0.10127377,
          -0.31014953,
          -0.11709716,
      ]
      self.bse = [
          0.0527437,
          0.0510688,
          0.0511949,
          0.0512138,
          0.0500341,
          0.0324963,
          0.0283292,
          0.0226563,
          0.0309871,
          0.0552107,
          0.0549118,
      ]
      self.aic_R = 522.14215776  # R adds 2 for dof to AIC
      self.aic_Stata = 7.459173652869477  # stata divides by nobs
      # self.deviance = 70.6652992116034   # from Stata
      self.deviance = 70.665301270867  # from R
      self.scale = 1.0
      self.llf = -250.0710778504317  # from Stata, ours with scale=1
      self.bic_Stata = -179.9959200693088  # no bic in R?
      self.df_model = 10
      self.df_resid = 59
  
      # TODO: taken from Stata; not available in sm yet
      self.chi2 = 2699.138063147485
  
      self.fittedvalues = [
          7.11599,
          19.11356,
          33.76075,
          33.26743,
          11.94399,
          27.49849,
          35.07923,
          37.22563,
          64.18037,
          108.0408,
          100.0948,
          35.67896,
          24.10508,
          73.99577,
          52.2802,
          38.88975,
          35.06507,
          102.1198,
          107.251,
          41.53885,
          196.3685,
          335.8434,
          205.3413,
          43.20131,
          41.98048,
          96.65113,
          63.2286,
          30.78585,
          70.46306,
          172.2402,
          102.5898,
          43.06099,
          358.273,
          549.8983,
          183.958,
          26.87062,
          62.53445,
          141.687,
          52.47494,
          13.10253,
          114.9587,
          214.803,
          90.33611,
          18.32685,
          592.5995,
          457.4376,
          140.9273,
          3.812064,
          111.3119,
          97.62744,
          57.48056,
          19.43552,
          130.4872,
          151.7268,
          69.67963,
          13.04879,
          721.728,
          429.2136,
          128.2132,
          9.04735,
          301.7067,
          177.3487,
          46.40818,
          4.707507,
          330.4211,
          330.7497,
          84.38604,
          1456.757,
          451.005,
          67.51025,
      ]
  
imports: import os
  import numpy
  import pandas
  from statsmodels.api import add_constant
  from statsmodels.genmod.tests.results import glm_test_resids
label_desc: Use image node_id 1 to create a new Wfs object  with example: obj = Wfs()