statsmodels.sandbox.regression.try_ols_anova.data2groupcont

statsmodels.sandbox.regression.try_ols_anova.data2groupcont(x1, x2) [source]

create dummy continuous variable

Parameters:
  • x1 (1d array) – label or group array
  • x2 (1d array (float)) – continuous variable

Notes

useful for group specific slope coefficients in regression

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.sandbox.regression.try_ols_anova.data2groupcont.html