min(x)

bukharin

RoboStataRaptor
#2
If you want to create a new variable based on minimum value of myvar you can use:
Code:
egen min=min(myvar)
Alternatively, if you want to use the minimum value of myvar for a calculation you should use a macro:
Code:
sum myvar
local min=r(min)