[R] confusion over "names" of lm.influence()$hat

2009-04-14 Thread Aaron M. Swoboda
I am performing a locally weighted regression model using housing data, where I only include observations within a certain distance of the house in question. For cross-validation of the bandwidth I am collecting elements of the "hat matrix" (where y hat=hat matrix *y). I was convinced I co

[R] which rows are duplicates?

2009-03-29 Thread Aaron M. Swoboda
I would like to know which rows are duplicates of each other, not simply that a row is duplicate of another row. In the following example rows 1 and 3 are duplicates. > x <- c(1,3,1) > y <- c(2,4,2) > z <- c(3,4,3) > data <- data.frame(x,y,z) x y z 1 1 2 3 2 3 4 4 3 1 2 3 I can't figure

[R] trouble switching to 'plm' from 'xtabond' and Stata

2009-01-20 Thread Aaron M. Swoboda
Hello, I am switching to R from Stata and I am having particular trouble with the transition from Stata's 'xtabond' and 'ivreg' commands to the "plm" package. I am trying to replicate some of the dynamic panel data work using the UK Employment data in Arellano and Bond (1991) and availabl