Use pd.cut instead of pd.qcut for step function in Ch07 (#81)
Equal-width bins match the cutpoints of Figure 7.2. The pd.qcut fit is kept further down, where it is compared with the degree-0 B-spline fit whose knots are at the age quartiles. Supersedes #42. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
452410232a
commit
df3af44447
1 file changed
+377
-302
+377
-302
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user