search for: gdp2

Displaying 5 results from an estimated 5 matches for "gdp2".

Did you mean: gdp
2012 Jan 18
0
Time series questions
...(4,65)) Qtr.temp = rep(1:4, 65) Temp.df = data.frame(cbind(Yr.temp,Qtr.temp)) and merged the two, so now I have the NA's. so, my DF is gdpdata with the above four columns, 260 rows. My first question: what is the difference between gdp.ts <- ts(gdpdata$GDP, start=1947, end=2011, fr=4) and gdp2.ts <- ts(gdpdata$GDP, start=c(1947,1), end=c(2011,4), fr=4) I get different outputs for time(gdp.ts) and time(gdp2.ts), and neither make sense. time(gdp.ts) gives me this: Qtr1 Qtr2 Qtr3 Qtr4 1947 1947 1947 1948 1948 1948 1948 1948 1948 1949 1949 1949 1949 1950 1950 snip 2009 2009 2...
2011 Jun 03
4
Problem using read.xls - Everything converted to factors
...ing code: testfile<-read.xls("/home/.../wsjecon0603.xls", #file path header=F, dec=",", na.strings="n.a.", skip=5, sheet=2, col.names=c("Name", "Firm","GDP1","GDP2","GDP3","GDP4","CPI5", "CPI11","UNEMP5","UNEMP11","PROF03","PROF04","STARTS03","STARTS04"), nrows=54, #colClasses=c(character,character,numeric,numeric,num...
2012 Jun 24
2
Defining multiple variables in a loop
...ow(country1)), replace = T)) tax2 <- as.matrix(sample(country2$lagtaxVSgdp1, size = (nrow(country2)), replace = T)) tax3 <- as.matrix(sample(country3$lagtaxVSgdp1, size = (nrow(country3)), replace = T)) gdp1 <- as.matrix(sample(country1$yoygdpcapita, size = (nrow(country1)), replace = T)) gdp2 <- as.matrix(sample(country2$yoygdpcapita, size = (nrow(country2)), replace = T)) gdp3 <- as.matrix(sample(country3$yoygdpcapita, size = (nrow(country3)), replace = T)) unemployment1 <- as.matrix(sample(country1$lagunemployment, size = (nrow(country1)), replace = T)) unemployment2 <- a...
2012 Apr 22
10
Assignment problems
...he text below is a part of, some work I have to do, which is due in 2 days and I am strung up with a lot of other stuff, so I was hoping someone would take 5 mins and help me ?? Here is a part of my data.frame: year country1 country2 contig comlang pop1 gdp1 pop2 gdp2 rta dist avgflow 1 1992 AUS AUT 0 0 17.4950008 321708.281 7.7825189 194684.078 0 15608.4 1.075999e+02 2 1992 AUS BEL 0 0 17.4950008 321708.281 10.0450001 231762.094 0 16319.2 4.767162e+02 3 1992 AUS CAN 0...
2012 Apr 17
6
How to add specific column to data.set?
Hi I have a data.set with 7 lists, with over 7000 observations in each list. to of the lists contain country names. like: aus dnk fra aus usa aut itl usa . . . etc. My dilemma is that I want to add an extra column/list to my data.set. If the countries are both european it should be assigned 1 or true AND if one or both the countries are non-european it should be assigned 0 or false.