Indicator matrix generation from survey questions.
by Antonio Trujillo-Ortiz
31 Dec 2008
(Updated 05 Jan 2009)
indicator matrix, multiple correspondence analysis, crosstabulation analysis, categorical analysis.
|
Watch this File
|
| File Information |
| Description |
An indicator matrix (G), a binary coding matrix of the factors called dummy variables. The number of rows are the total sample items and the columns are the total categories of the variables. The elements in G are 1's if the item corresponding to the category of the variable or 0's if not. The indicator matrix is an alternative format to input data in a Multiple Correspondence Analysis from survey questions. One can get the Burt matrix (B) simply by B = G'G.
Syntax: function x=indmatgen(lcv,table)
Input:
lcv: maximum number of levels on each catagorical variable
table: table of data
Output:
- Indicator matrix
|
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 31 Dec 2008 |
It was added an appropriate format to cite this file. |
| 03 Jan 2009 |
Text was improved. |
| 05 Jan 2009 |
We improved this m-file by the valuable comment of Jos (05/01/2009). |
|
Contact us at files@mathworks.com