# Nonparametric regression example: husband's age on wife's age open mroz87.gdt # initial value for the bandwidth scalar h = $nobs^(-0.2) # three increasingly smooth estimates series m0 = nadarwat(HA, WA, h) series m1 = nadarwat(HA, WA, h * 5) series m2 = nadarwat(HA, WA, h * 10) # produce the graph dataset sortby WA gnuplot HA m0 m1 m2 WA --output=display --with-lines=m0,m1,m2