Hello,

is there a possibility to include an if condition in the Heckman correction?

I am currently using the Heckman command like this:
heckman lnhwage age health tenure female ///
select (unemployed = age health tenure female single) twostep

Now I would like to add an if condition for the first line of my command, if parttime == 1, so that only those who work part-time are taken into account. For the selection part I would then want to access all of them again, is there a possibility?

Thanks for your help!