STATA变量中心化和标准化

定义

  1. X标准化:
  2. X中心化:

命令 center

安装

center为外部命令,需要事先安装。
ssc install center

语法

center varlist [,inplace { prefix(prefix) | generate(newvar) } standardize ]

解释:

centers (or, optionally, standardizes) the variables in varlist. For each varname in varlist, a new variable c_varname is created containing the centered (or standardized) values of that variable.

你可能感兴趣的:(STATA变量中心化和标准化)