{smcl} {* 20May2009}{...} {cmd:help addobs} {hline} {title:Title} {p2colset 5 18 20 2}{...} {p2col :{hi:addobs} {hline 2}} Add an observation to the end of a dataset to allow post-estimation use of {cmd:predict}. {p2colreset}{...} {title:Syntax} {p 8 15 2}{cmd:addobs} {ifin} [{cmd:,} {cmd:x(}{it:variable}={it:values}...{cmd:)} {cmd:mean(}{it:variable-list}{cmd:)} {cmd:min(}{it:variable-list}{cmd:)} {cmd:max(}{it:variable-list}{cmd:)} {cmd:zero(}{it:variable-list}{cmd:)} {cmd:one(}{it:variable-list}{cmd:)} {cmd:add1(}{it:variable-list}{cmd:)} {cmd:addhalf(}{it:variable-list}{cmd:)} {cmd:addsd(}{it:variable-list}{cmd:)} {cmd:addhalfsd(}{it:variable-list}{cmd:)} {cmd:sub1(}{it:variable-list}{cmd:)} {cmd:subhalf(}{it:variable-list}{cmd:)} {cmd:subsd(}{it:variable-list}{cmd:)} {cmd:subhalfsd(}{it:variable-list}{cmd:)} {cmd:svy} {cmdab:nol:ist} {cmd:row(}{it:row-to-addsvy}{cmd:)} {cmdab:lin:ear(}{it:variable}{cmd:)} {cmdab:squ:ared(}{it:variable}{cmd:)} {cmdab:cub:ed(}{it:variable}{cmd:)} {title:Description} {pstd} {opt addobs} allows you to append a new observation to the current dataset. {title:Options} {p 1 1 2} {synoptset 14 tabbed}{...} {synopthdr} {synoptline} {synopt :{opt x()}} for paired variable value labels such as {it:variable}={it:value}, where the {it:value} can be a number, or the strings mean, med, min, or max.{p_end} {synopt :{opt mean()}} listing variables to set to their mean.{p_end} {synopt :{opt min()}} listing variables to set to their minimum.{p_end} {synopt :{opt max()}} listing variables to set to their maximum.{p_end} {synopt :{opt zero()}} listing variables to set to 0.{p_end} {synopt :{opt one()}} listing variables to set to 1.{p_end} {synopt :{opt add1()}} listing variables whose values are increased by 1.{p_end} {synopt :{opt addhalf()}} listing variables whose values are increased by .5.{p_end} {synopt :{opt addsd()}} listing variables whose values are increased by a SD.{p_end} {synopt :{opt addhalfsd()}} listing variables whose values are increased by SD/2.{p_end} {synopt :{opt sub1()}} listing variables whose values are decreased by 1.{p_end} {synopt :{opt subhalf()}} listing variables whose values are decreased by .5.{p_end} {synopt :{opt subsd()}} listing variables whose values are decreased by a SD.{p_end} {synopt :{opt subhalfsd()}} listing variables whose values are decreased by SD/2.{p_end} {synopt :{opt nol:list}}do not list added observation.{p_end} {synopt :{opt svy}}compute mean and standard deviation with svy: mean.{p_end} {synopt :{opt row()}}row number for revised observation.{p_end} {synopt :{opt linear()}}linear term corresponding to squared and/or cubed term.{p_end} {synopt :{opt squared()}}squared term corresponding to linear term.{p_end} {synopt :{opt cubed()}}cubed term corresponding to linear term.{p_end} {p 4 6 2} {title:Examples:} {phang}{cmd:. addobs} {title:Author} {p 5 5} Scott Long{break} Indiana University{break} Departments of Sociology & Statistics{break} jslong{@}indiana.edu{break} {browse "http://www.indiana.edu/~jslsoc/"}{p_end}