reconnect moved files to git repo

This commit is contained in:
root
2025-08-01 04:33:03 -04:00
commit 5d3c35492d
23190 changed files with 4750716 additions and 0 deletions

View File

@ -0,0 +1,5 @@
__all__ = ["load", "load_pandas",
"COPYRIGHT", "TITLE", "SOURCE", "DESCRSHORT", "DESCRLONG", "NOTE"]
from .data import (
load, load_pandas,
COPYRIGHT, TITLE, SOURCE, DESCRSHORT, DESCRLONG, NOTE)

View File

@ -0,0 +1,60 @@
"""Stack loss data"""
from statsmodels.datasets import utils as du
__docformat__ = 'restructuredtext'
COPYRIGHT = """This is public domain. """
TITLE = __doc__
SOURCE = """
Brownlee, K. A. (1965), "Statistical Theory and Methodology in
Science and Engineering", 2nd edition, New York:Wiley.
"""
DESCRSHORT = """Stack loss plant data of Brownlee (1965)"""
DESCRLONG = """The stack loss plant data of Brownlee (1965) contains
21 days of measurements from a plant's oxidation of ammonia to nitric acid.
The nitric oxide pollutants are captured in an absorption tower."""
NOTE = """::
Number of Observations - 21
Number of Variables - 4
Variable name definitions::
STACKLOSS - 10 times the percentage of ammonia going into the plant
that escapes from the absoroption column
AIRFLOW - Rate of operation of the plant
WATERTEMP - Cooling water temperature in the absorption tower
ACIDCONC - Acid concentration of circulating acid minus 50 times 10.
"""
def load():
"""
Load the stack loss data and returns a Dataset class instance.
Returns
-------
Dataset
See DATASET_PROPOSAL.txt for more information.
"""
return load_pandas()
def load_pandas():
"""
Load the stack loss data and returns a Dataset class instance.
Returns
-------
Dataset
See DATASET_PROPOSAL.txt for more information.
"""
data = _get_data()
return du.process_pandas(data, endog_idx=0)
def _get_data():
return du.load_csv(__file__, 'stackloss.csv').astype(float)

View File

@ -0,0 +1,22 @@
"STACKLOSS","AIRFLOW","WATERTEMP","ACIDCONC"
42,80,27,89
37,80,27,88
37,75,25,90
28,62,24,87
18,62,22,87
18,62,23,87
19,62,24,93
20,62,24,93
15,58,23,87
14,58,18,80
14,58,18,89
13,58,17,88
11,58,18,82
12,58,19,93
8,50,18,89
7,50,18,86
8,50,19,72
8,50,19,79
9,50,20,80
15,56,20,82
15,70,20,91
1 STACKLOSS AIRFLOW WATERTEMP ACIDCONC
2 42 80 27 89
3 37 80 27 88
4 37 75 25 90
5 28 62 24 87
6 18 62 22 87
7 18 62 23 87
8 19 62 24 93
9 20 62 24 93
10 15 58 23 87
11 14 58 18 80
12 14 58 18 89
13 13 58 17 88
14 11 58 18 82
15 12 58 19 93
16 8 50 18 89
17 7 50 18 86
18 8 50 19 72
19 8 50 19 79
20 9 50 20 80
21 15 56 20 82
22 15 70 20 91