help addobs

Title

addobs -- Add an observation to the end of a dataset to allow post-estimation
use of predict.

Syntax

addobs
[if] [in]
[,
x(variable=values...)
mean(variable-list)
min(variable-list)
max(variable-list)
zero(variable-list)
one(variable-list)
add1(variable-list)
addhalf(variable-list)
addsd(variable-list)
addhalfsd(variable-list)
sub1(variable-list)
subhalf(variable-list)
subsd(variable-list)
subhalfsd(variable-list)
svy
nolist
row(row-to-addsvy)
linear(variable)
squared(variable)
cubed(variable)

Description

addobs
allows you to append a new observation to the current dataset.

Options

x() for paired variable value labels such as variable=value,
where the value can be a number, or the strings mean, med, min, or max.

mean() listing variables to set to their mean.

min() listing variables to set to their minimum.

max() listing variables to set to their maximum.

zero() listing variables to set to 0.

one() listing variables to set to 1.

add1() listing variables whose values are increased by 1.

addhalf() listing variables whose values are increased by .5.

addsd() listing variables whose values are increased by a SD.

addhalfsd() listing variables whose values are increased by SD/2.

sub1() listing variables whose values are decreased by 1.

subhalf() listing variables whose values are decreased by .5.

subsd() listing variables whose values are decreased by a SD.

subhalfsd() listing variables whose values are decreased by SD/2.

nollist do not list added observation.

svy compute mean and standard deviation with svy: mean.

row() row number for revised observation.

linear() linear term corresponding to squared and/or cubed term.

squared() squared term corresponding to linear term.

cubed() cubed term corresponding to linear term.

Examples:

. addobs

Author

Scott Long

Indiana University

Departments of Sociology & Statistics

jslong{@}indiana.edu

http://www.indiana.edu/~jslsoc/