------------------------------------------------------------------------------- help forsemean-------------------------------------------------------------------------------

Calculate standard error of mean, optionally applying function

semeanvarname[ifexp] [inrange] [,noprintfunction(string)]

varnamemay contain time-series operators; see helpvarlist.

semeancalculates the standard error of the mean of a variable. Optionally, a function of the variable may be applied prior to computation of the variable's statistics.This command was written as an illustration of ado-file development for Baum (2006). An

egenfunction to compute the standard error of the mean is available in Nicholas Cox'segenmorepackage.

Optionsfunction(string)may be given in order to calculate statistics based on that transformation of the variable. Any valid Stata numeric function may be provided.

noprintspecifies that no output is to be produced. With or without this option, the mean, standard error of mean and number of valid observations are placed in the return vector.

Examples. webuse lutkepohl,clear

. semean investment

. semean linvestment

. semean investment, func(log)

AuthorChristopher F. Baum, Boston College, USA baum@bc.edu

ReferencesChristopher F Baum, 2006. An Introduction to Modern Econometrics with Stata. College Station:Stata Press.

Also seeOn-line: egenmore (if installed)