Displaying 5 results from an estimated 5 matches for "gdp1".
Did you mean:
gdp
2012 Jun 24
2
Defining multiple variables in a loop
....matrix(sample(country1$lagexpVSgdp, size =
(nrow(country1)), replace = T))
exp2 <- as.matrix(sample(country2$lagexpVSgdp, size =
(nrow(country2)), replace = T))
exp3 <- as.matrix(sample(country3$lagexpVSgdp, size =
(nrow(country3)), replace = T))
tax1 <- as.matrix(sample(country1$lagtaxVSgdp1, size =
(nrow(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)), re...
2011 Jun 03
4
Problem using read.xls - Everything converted to factors
...I used the following 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,nu...
2012 Apr 22
10
Assignment problems
The 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...
2012 Jan 18
0
Time series questions
...4
1947 1947 1947 1948 1948
1948 1948 1948 1948 1949
1949 1949 1949 1950 1950
snip
2009 2009 2009 2010 2010
2010 2010 2010 2010 2011
2011 2011 2011 2012 2012
Where did the missing values for 2011 go in gdp.ts? why are there 5 2010's
in both, and only 2 1947's?
cycle(gdp2) is correct, cycle(gdp1) is not.
My next question is with the NA in there for 2010q4. All of the (extremely
basic still learning) time series functions I've been learning don't work.
For example
m <- decompose(gdp2)
returns
Error in na.omit.ts(x) : time series contains internal NAs
I have tried
removeNA(g...
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.