Learn R Programming

SciencesPo (version 1.4.1)

WeightedStdz: Computes Weighted Standardized Values

Description

Computes weighted standardized values of data.

Usage

WeightedStdz(x, weights = NULL)

Arguments

x
a vector for which a set of standardized values is desired.
weights
a vector of weights to be used to determining weighted values of x.

Examples

Run this code
 x <- sample(10,10)
 w <- sample(5,10, replace=TRUE)

WeightedStdz(x, w)

Run the code above in your browser using DataLab