You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The - 1 is because one degree of freedom will be taken by the intercept; alternatively, you could leave the intercept term out of your model and use bs(x, num_bins, degree=0, include_intercept=True)
However, I've tried both variants, noting that they produce different results.
Could you describe what effect the declaration of B is supposed to have?
The text was updated successfully, but these errors were encountered:
jdmoore7
changed the title
Ch4 Patsy usage
Rethinking_2 Chp_4: Patsy usage for B-Spline
Nov 11, 2020
In section 4.74, the following code block is used:
knot_list[1:-1]
is used; not explained in official textbook (to my knowledge) or in code block.-1
was used in the formula-like string provided.From Patsy official documentation:
https://patsy.readthedocs.io/en/latest/API-reference.html#patsy.bs
However, I've tried both variants, noting that they produce different results.
Could you describe what effect the declaration of B is supposed to have?
The text was updated successfully, but these errors were encountered: