pydata / patsy

Describing statistical models in Python using symbolic formulas
Other
955 stars 104 forks source link

Does python have an analogue to R's splines::ns() #183

Open alexhallam opened 2 years ago

alexhallam commented 2 years ago

See my stackoverflow question here https://stackoverflow.com/questions/71550468/does-python-have-an-analogue-to-rs-splinesns

I am thinking that there is not current way to make this happen in patsy.

I am requesting a feature for a ns function much like the cr function, but where ns matches the behavior of R's splines::ns