I have the code for this regression model in R, and I am trying to replicate it using python:
log(y+1) = beta0 + beta1(x1) + beta2*log(x2+1) + f_spline(x3) + sum_cate