Dear members, I want to generate positive and negative components of a variable on stata for non-linear panel ARDL.

I am just stuck on this stage. I need stata command or code. please help.

Regards,
Rabiya gill