Sample of SAS code

Can anyone share a sample of SAS code that are used to compute estimate of mean time of an activity in a population of interest engaged in and SE?
Thank you in advance.
Guang

The weight to use to calculate the average minutes per day spent on a particular activity is WT06. To get proper standard errors, you should be using replicate weights (RWT06). This page discusses the use of replicate weights in IPUMS USA, and contains sample SAS code for calculating means and SE’s using the weights (using PROC SURVEYREG). The general procedure is also applicable to the ATUS replicate weights, though you’ll need to change the names of the weight variables and replace “80” with “160”, because ATUS provides 160 replicate weights.