| MATLAB Central > MATLAB Newsreader > How to create dummy variables from categorical dat... |
|
|
|
Subject: How to create dummy variables from categorical data? From: Economist Date: 21 Feb, 2011 15:39:25 Message: 1 of 7 |
|
I have a fairly large dataset with a variable that represents host country, e.g. “Finland”. How do I create dummy variables from this country variable, i.e. one dummy for each country? I plan to use the dummies in survival analysis. |
|
Subject: How to create dummy variables from categorical data? From: someone Date: 21 Feb, 2011 15:48:04 Message: 2 of 7 |
|
"Economist" wrote in message <iju0vd$6fj$1@fred.mathworks.com>... |
|
Subject: How to create dummy variables from categorical data? From: ImageAnalyst Date: 21 Feb, 2011 15:54:03 Message: 3 of 7 |
|
On Feb 21, 10:39 am, "Economist " |
|
Subject: How to create dummy variables from categorical data? From: Economist Date: 21 Feb, 2011 16:08:04 Message: 4 of 7 |
|
The data consists of strings, i.e. the values for the 10 first observations are: |
|
Subject: How to create dummy variables from categorical data? From: ImageAnalyst Date: 21 Feb, 2011 16:13:01 Message: 5 of 7 |
|
On Feb 21, 11:08 am, "Economist " |
|
Subject: How to create dummy variables from categorical data? From: Richard Startz Date: 21 Feb, 2011 21:22:31 Message: 6 of 7 |
|
On Mon, 21 Feb 2011 16:08:04 +0000 (UTC), "Economist " |
|
Subject: How to create dummy variables from categorical data? From: Peter Perkins Date: 22 Feb, 2011 03:05:24 Message: 7 of 7 |
|
On 2/21/2011 10:39 AM, Economist wrote: |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
