docstr: Perturbs the model's parameters using a bootstrap.
docstr_tok: ["Perturbs","the","model","'s","parameters","using","a","bootstrap","."]
code: def _perturb_bootstrap(self, vname):
      """
      Perturbs the model's parameters using a bootstrap.
      """
  
      endog, exog, init_kwds, fit_kwds = self.get_fitting_data(vname)
  
      m = len(endog)
      rix = np.random.randint(0, m, m)
      endog = endog[rix]
      exog = exog[rix, :]
  
      init_kwds = self._boot_kwds(init_kwds, rix)
      fit_kwds = self._boot_kwds(fit_kwds, rix)
  
      klass = self.model_class[vname]
      self.models[vname] = klass(endog, exog, **init_kwds)
  
      if vname in self.regularized and self.regularized[vname]:
          self.results[vname] = self.models[vname].fit_regularized(
              **fit_kwds
          )
      else:
          self.results[vname] = self.models[vname].fit(**fit_kwds)
  
      self.params[vname] = self.results[vname].params
  
imports: import pandas
  import numpy
  import patsy
  from statsmodels.base.model import LikelihoodModelResults
  from statsmodels.regression.linear_model import OLS
  from collections import defaultdict
label_desc: Use image node_id 16 for calling the MICEData obj's underlying member method code with example usage: obj._perturb_bootstrap(vname) without return types