27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RMV<br />

RMV new variables={LINT (varlist) }<br />

{MEAN (varlist [{,2 }]) }<br />

{ {,n } }<br />

{ {ALL} }<br />

{MEDIAN (varlist [{,2 }])}<br />

{ {,n } }<br />

{ {ALL} }<br />

{SMEAN (varlist) }<br />

{TREND (varlist) }<br />

[/new variables=function (varlist [,span])]<br />

Function keywords:<br />

LINT Linear interpolation<br />

MEAN Mean of surrounding values<br />

MEDIAN Median of surrounding values<br />

SMEAN Variable mean<br />

TREND Linear trend at that point<br />

Example<br />

Overview<br />

RMV NEWVAR1=LINT(OLDVAR1).<br />

RMV produces new variables by copying existing variables and replacing any system- or<br />

user-missing values with estimates computed by one of several methods. You can also use<br />

RMV to replace the values of existing variables. The estimated values are computed from<br />

valid data in the existing variables. The new or revised variables can be used in any procedure<br />

and can be saved in an SPSS-format data file.<br />

Basic Specification<br />

The basic specification is one or more new variable names, an equals sign, a function, and<br />

an equal number of existing variables. RMV displays a list of the new variables, the number<br />

of missing values replaced, the case numbers of the first and last nonmissing cases, the<br />

number of valid cases, and the function used to produce the variables.<br />

<strong>Syntax</strong> Rules<br />

• The existing variables (and span, if specified) must be enclosed in parentheses.<br />

• The equals sign is required.<br />

• You can specify more than one equation on RMV.<br />

1438

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!