withinvar {prodest} | R Documentation |
Generate the variance of the demeaned variable
Description
withinvar()
subtracts the mean of a vector from the vector itself, and then returns its variance.
Usage
withinvar(inmat)
Arguments
inmat |
Vector of log(value added output). |
Details
withinvar()
accepts a vector as input, then subtracts the mean from it and returns the variance.
Author(s)
Gabriele Rovigatti
[Package prodest version 1.0.1 Index]