If you do dump(data) then you see that for that specific dataset :Sex is 
already pooled. They way to pool it if it wasn't areadly pooled would be 
pool!(data, 
:Sex).

On Friday, July 4, 2014 10:46:17 PM UTC+3, Florian Oswald wrote:
>
> Hi,
>
> say I want to use the GLM package to run a regression that contains 
> several categorical variables. My understanding is that I need the 
> equivalent of an R factor, which is a PooledDataArray. Suppose I take this 
> dataset
>
> using RDatasets
>
> *data = dataset("Ecdat","Benefits")*
>
> and I want columns 6-14 as PooledDataArray
>
> I tried
>
> data[,:Sex] = convert(PooledDataArray,data[,:Sex])
> and
> pool!(data[,:Sex])  # I can see that this needs a second column with the 
> numeric code
>
> thanks!
>
>

Reply via email to