Re: [R] How to create MULTILEVELS in a dataset??

2009-10-19 Thread Ista Zahn
HI, Please keep r-help copied on the reply -- hopefully someone will pick up this thread and help us out. On Mon, Oct 19, 2009 at 2:17 AM, saurav pathak pathak.sau...@gmail.com wrote: Dear Ista Thanks for answering, the previous question was a primer to what I wanted, I did just what you said

Re: [R] How to create MULTILEVELS in a dataset??

2009-10-19 Thread saurav pathak
Hi Ista You got that correct, yearctry is a composite created as yearctry = year*1+country, so that say for example USA with country code 1 and year 2000 will be 201, for year 2005, it will be 2005001, the years are listed from 2000 to 2008, for many countries, for UK say it will be

Re: [R] How to create MULTILEVELS in a dataset??

2009-10-19 Thread Ista Zahn
Hi, I wouldn't combine the year and country codes in the first place, and certainly not as a numeric value. Do you have the raw data with country and year listed separately? From the output you listed it looks like you indeed have a single value (2e+07) for yearctry. You can check with

[R] How to create MULTILEVELS in a dataset??

2009-10-18 Thread saurav pathak
Dear R users I have a data set which has five variables. One depenedent variable y, and 4 Independent variables (education-level, householdincome, countrygdp and countrygdpsquare). The first two are data corresponding to the individual and the next two coorespond to the country to which the

Re: [R] How to create MULTILEVELS in a dataset??

2009-10-18 Thread Ista Zahn
Hi Saurav, I was waiting for someone else to answer you, because I'm not sure I'll be able to explain clearly. But since no one is jumping on it, I'll take a stab. On Sun, Oct 18, 2009 at 5:52 PM, saurav pathak pathak.sau...@gmail.com wrote: Dear R users I have a data set which has five