search for: fe2

Displaying 3 results from an estimated 3 matches for "fe2".

Did you mean: fe
2011 Aug 23
1
Efficiency of random and fixed effects estimator
...orm(50),each=2) happy<-base.happy+1.5*d*obs+rnorm(100) data<-data.frame(id,obs,d,happy) # Now run the random and fixed effects models library(lme4) reg.re<-lmer(happy~factor(obs)*factor(d)+(1|id)) reg.fe1<-lm(happy~factor(id)+factor(obs)*factor(d)) summary(reg.fe1) library(plm) reg.fe2<-plm(happy~factor(obs)*factor(d),index=c('id','obs'),model="within",data=data) summary(reg.fe2) I am confused why FE and RE models are virtually equally efficient in this case. Can somebody lift my confusion? Thanks much, Daniel -- View this message in context:...
2009 Sep 13
2
zoo plot: yearly marks on X-Axis
.... I applied Your script into mine like this: - library(Rdbi) library(RdbiPgSQL) conn <- dbConnect(PgSQL(), host="localhost", dbname="BVS", user="postgres", password = "******") query_duj_kal <- dbSendQuery(conn, "select zdroj as well, cas as date, fe2, fe3, mn, nh4, no2, no3, o2, teplota as temperature from analystats where zdroj like 'Dunaj Kalinkovo' order by date") watchem_duj_kal <- dbGetResult(query_duj_kal) date <- (watchem_duj_kal$date) date_p <- strptime(date, "%m-%d-%Y") no3 <- (watchem_duj_kal$no3) n...
2009 Sep 11
1
format (?) problems with data imported from postgres
...library(RdbiPgSQL) # conn becomes an object which contains the DB connection: conn <- dbConnect(PgSQL(), host="localhost", dbname="BVS", user="postgres", password = "*******") query_duj_kal <- dbSendQuery(conn, "select zdroj as well, cas as date, fe2, fe3, mn, nh4, no2, no3, o2, teplota as temperature from analystats where zdroj like 'Dunaj Kalinkovo'") watchem_duj_kal <- dbGetResult(query_duj_kal) My intention with the data is to create a time series by a following script: date <- (watchem_duj_kal$date) NO3 <- (watchem_...