Re: [R] Help on np package - how to set the data into a panel format

2013-07-13 Thread John Kane
Kingston ON Canada > -Original Message- > From: serenamas...@gmail.com > Sent: Sat, 13 Jul 2013 12:30:34 +0100 > To: r-help@r-project.org > Subject: [R] Help on np package - how to set the data into a panel format > > Hi, > > I am new to R and am a STATA user. I

Re: [R] Help on np package - how to set the data into a panel format

2013-07-13 Thread Rui Barradas
Hello, It would be better if you post a data example. Like this, I will make up one. I'm not sure I understand the question, but if you want to change your data from long to wide format there are several ways of doing it. # Make up some data dat <- data.frame( year = rep(1:2, each =

[R] Help on np package - how to set the data into a panel format

2013-07-13 Thread serena masino
Hi, I am new to R and am a STATA user. I am using R as I need the np package to perform a local linear non parametric regression on a panel data of countries. My data contains 138 countries, each observed for 31 years, from 1981 to 2011. I am aware of the panel package in R which sets the data in