Forum: help
Monitor Forum | Start New ThreadRE: error messge using quadFuncEst in micEcon [ Reply ] By: Abdul Salif on 2011-10-16 13:13 | [forum:5054] |
Thanks Dr. Henningsen for the response. I got it to run with the code bellow: I do not know the reason why, thought. library("micEcon") library(plm) setwd("C:\\Users\\Wahab\\Desktop\\production Econs") dta <- read.csv("MTQ1DataQuad.csv", header=T) prodt<-data.frame(dta) Paneldat1 <- pdata.frame(prodt, index = c("Indiv","Time")) xmat<-c( "n", "p", "k", "l") quad <- quadFuncEst( "y", xmat ,paneldat1, shifterNames ="pdi") |
RE: error messge using quadFuncEst in micEcon [ Reply ] By: Arne Henningsen on 2011-10-16 06:26 | [forum:5053] |
I regret that the error message is not very helpful. I guess that one of your variables is not in the (panel) data frame. Plese check if the following commands all print the desired variables: paneldta1[[ "y" ]] paneldta1[[ xmat[1] ]] paneldta1[[ xmat[2] ]] paneldta1[[ xmat[3] ]] paneldta1[[ xmat[4] ]] paneldta1[[ "pdi" ]] |
error messge using quadFuncEst in micEcon [ Reply ] By: Abdul Salif on 2011-10-15 22:02 | [forum:5052] |
Hello All I got the following error message with the following code and would be glad if I can get help to fix it: Error in `[[<-.data.frame`(`*tmp*`, xName, value = numeric(0)) : replacement has 0 rows, data has 310 library("micEcon") library(plm) setwd("C:\\Users\\Wahab\\Desktop\\production Econs") dta <- read.csv("MTQ1DataQuad.csv") prodt<-data.frame(dta) paneldta1 <- pdata.frame(prodt, index = c("Indiv","Time")) xmat<-c( "n", "p", "k", "l") quad <- quadFuncEst( "y", xmat ,paneldta1, shifterNames ="pdi", linear = FALSE, homWeights = NULL, regScale = NULL ) Thanks |