Specify the function
Project brief. Recreate the same person-level analysis in Python 3. The function accepts only 0, 1, and None. It returns event count, observed count, missing count, and the observed-outcome proportion. Define behavior for invalid values and for a dataset with no observed outcomes before implementing.