regen creates a new variable or changes an existing variable in the most general way. The syntax essentially follows that of generate, replace and egen respectively, adding the possibility to set (or change) a variable's display format and variable label.