*! version 1.0 Fernando Rios-Avila May 2020
help lbsvmat

Title

lbsvmat - Module to create labeled variables from a matrix

Syntax

lbsvmat [type] A, [name(string) matname]

Options

name(string) specifies how the new variables are to be named. If left empty (default), the new variables will
be created using the matrix name as prefix. Otherwise, it uses name as the variable variable prefix.

matname if specified, the new variables are named using the matrix coleq and colname information.
It can be combined with name.

Description

lbsvmat is a command that is similarly to svmat. It can be used to create variables
from a matrix A, using a variable format of your choice, The default is float.

In contrast with svmat, the default option is for the newly created variables
to be labeled using the matrix column names and column equations names.

One can also use the options name as a prefix for the new variables, and matname to use
to name the variables based on the columns name and equation.

This can be useful for identifying which new variable corresponds to the original matrix column.
Useful for creation of coefficient plots with qreg, or other similar plots. See anscilliary dofile for some examples.

Acknowledgments

This program was inspired by various request about how to easily plot coefficients from quantile regressions models
(on its many flavors).

All errors are my own.

Author

Fernando Rios-Avila

Levy Economics Institute of Bard College

Annandale-on-Hudson, NY

friosavi@levy.org