capture program drop _makestar
program define _makestar, eclass
	args variable
		sum p if parm == "`variable'"
		local p = r(mean)
		display `p'
		if `p' <= 0.01{
			global star = "***"
		}
		else if `p' <= 0.05{
			global star = "**"
		}
		else if `p' <= 0.1{
			global star = "*"
		}
		else {
			global star = ""
		}

	display "$star"
end