spreg.dgp.make_error¶
- spreg.dgp.make_error(rng, n, mu=0, varu=1, method='normal')[source]¶
make_error: generate error term for a given distribution
Examples
>>> import numpy as np >>> from spreg import make_error >>> rng = np.random.default_rng(12345) >>> make_error(rng,5) array([[-1.42382504], [ 1.26372846], [-0.87066174], [-0.25917323], [-0.07534331]])