Below we do the same for science and socst , creating two new variables, z1science and z1socst , using their respective means and standard deviations taken from first table of summary statistics. The table of summary statistics shown below demonstrates that both variables are indeed standardized. Note that the means are not exactly zero, nor do they match the means from the set of standardized variables created above using the generate command, in both cases, this is due to very slight rounding error. Again we can look at a table of summary statistics to confirm that these variables are standardized. We will create standardized versions of three variables, math , science , and socst. The commands below standardize the values of math , science , and socst , creating three new variables, z2math , z2science , and z2socst. To illustrate the process of standardization, we will use the High School and Beyond dataset hsb2. Standardizing a variable is a relatively straightforward procedure.
© 2020 yorongar.com - All rights reserved. All Models are over 21 y.o.