First, generate the weighted y and x by typing the followings into
the command line:
"genr ystar = y / sdp"
"genr xstar = x / sdp"
For the weighted least-square, just regress ystar on xstar by using
the
"Estimate Equation" from the "Quick" option, type "ystar c xstar" into
the
dialog box. And here are the results: