Displaying 3 results from an estimated 3 matches for "countrydata".
2011 May 16
0
MI help
Hi,
I am trying to do multiple imputation on a panel of data and then, use the
imputed values in stochastic frontier analysis. I am using this code just as
a start to see if will run:
mi(countrydata, n.iter = 30, R.hat = 1.1, max.minutes = 20, rand.imp.method =
"bootstrap", run.past.convergence = FALSE, seed = NA)
Unfortunately, I get this error which seems to have to do with the panel
nature of the data:
Error in function (classes, fdef, mtable) :
unable to find an inhe...
2008 Jul 24
1
Formatting Syntax when Merging
...I've merged the attached two data sets, generating a final merged data
set, but when I review this merged data, the dates are not in the
correct order. I know that this can be solved by using something like
fmt<-"%m/%d/%y", but where should this go in the commands below?
> Countrydata<-read.table("Desktop/R/Countrydata.txt", head=T, sep="\t")
> Dates<-read.table("Desktop/R/CDSdate.txt", head=T, sep="\t")
> Merged<-merge(Dates, Countrydata, all.x=T)
> edit(Merged)
Also, I thought all.x=T was supposed to fill in every m...
2008 Jul 26
1
Marking Interval Length
...e in value. What I
have done is merged the attached data files, and filled in the missing
values this way:
> fmt<-"%m/%d/%y"
> dd<-read.csv("Desktop/R/CDSdate.txt")
> dd$Date<-as.Date(dd$Date, fmt)
>library(zoo)
> data<-read.zoo("Desktop/R/Countrydata.txt", head=T, format=fmt, sep="\t")
>newdata<-merge(data, zoo(,dd$Date)
>Finaldata<-na.locf(newdata, fromLast=TRUE)
Now, I have to break up this Finaldata. I've been told to do something
like this:
# first make up some data
jym.df<-data.frame(country=rep(c(&qu...