Displaying 20 results from an estimated 75 matches for "gdp".
Did you mean:
dp
2004 Apr 14
3
A bug report?
...ot;Simple full OLS regression with all data:\n")
logtax = log(tax)
logtaxbase = log(taxbase)
m = lm(logtax ~ logtaxbase)
summary.lm(m)
details = summary.lm(m)
}
A <- read.table(file="amodi-data.csv", sep=",", col.names=c("year",
"gdp.ag", "gdp.mining", "gdp.manuf", "gdp.elecgas",
"gdp.construction", "gdp.industry", "gdp.services",
"gdp.fc", "indirect.taxes", "subsidies", "j1",...
2008 Jan 30
2
numeric coercion when one or more elements is non numerice
I don't understand this behavior. Why does the every data point get trashed by data.matrix when there is one non-numeric element in the array? Thanks.
> temp
GDP CPIYOY
19540 2098.1 garbage
19632 2085.4 0.9
19724 2052.5 0.8
19814 2042.4 1.1
> data.matrix(temp)
GDP CPIYOY
19540 4 4
19632 3 2
19724 2 1
19814 1 3
>
I'd like garbage to become NA but I tried filtering the array...
2001 Sep 24
3
x axis point labels
...int labels and replace them with arbitrary x axis point
labels relating to specific CDF points.
I am sure this can be done, but it isn't obvious to me how. Has anyone done
this before?
My R code follows if it helps (new to R so please excuse any awkwardness that
you notice.)
plot(density(gdp), main="Probability Distribution\n of 2002 US GDP
Forecast",lwd=3,
xlim=c(-9,9), ylim=c(0,.3),xlab="Percent Real GDP Growth")
par(new=T)
newline _ cbind(c(gdp[5000/2],gdp[5000/2]),c(0,.25))
newline1 _ cbind(c(gdp[.05*5000],gdp[.05*5000]),c(0,.15))
newline2 _ cbind(c(gdp[.95...
2012 Apr 30
5
Different varable lengths
Hi!
I'm trying to do a lm() test on three objects. My problem is that R protests
and says that the variable lengths differ for one of the objects
(Sweden.GDP.gap). But I have double checked that the number of observations
are the same. All three objects should contain 9 observations but R only
accepts 9 observations in two of the objects. The third must have 10! Very
confusing because there is no 10th observation!
# Adjusted Real rate - P
> Sweden....
2011 Dec 07
1
removing specified length of text after a period in dataframe of char's
...sing substring was the approach I was thinking of taking, but
this would seem to need for loops here. I was wondering if anyone
knows any easier ways.
Thanks very much for any help!
Aidan
digordered<- c(0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1)
f<-structure(list(c("GDP (LCU,bn)", "GDP ($, bn)", "GDP per capita (LCU)",
"Ratio to EZ GDP Per Cap", "Share of World GDP (Intl $, %)",
"Real GDP Growth (%)", "Population (mn)", "Unemployment Rate (%)",
"Ratio of Employed/Unemployed", &quo...
2012 Oct 22
0
"Vars" package: impulse response function
Hello,
I'm using VAR models in R in order to obtain impulse responses of stock
market shock on US economy.
I have series of quarterly changes in real gdp, S&P 500 and quarterly level
of unemployment for 1985 - 2012 period.
My series are stationary. So I did all the steps below. However I don't
understand what do irf function results mean. These are the cumulative
orthogonal responses to sp variable shock but what is the value of this
shock?...
2003 Oct 04
2
(no subject)
...g question. I have to fit the hierarchical model for the
hypothesis concern the individual-level effects by controlling for the
individual -level attributes and national-level contextual effects on
individuals by using R.
O have to obtain the estimates of the impact of the second-level (national:
GDP per capita) effects on individuals ( in this instance the impact of the
GDP per capita on the attitudes towards the EU enlargement) by allowing
national differences in both slopes (GDP per capita) and interceps.
In R programm for the fitting the hierarchical models i can use the nlme
package. I fo...
2011 Nov 16
1
geom_bar with missing data in package ggplot
...th a ggplot question. I would like
to generate a faceted bar chart, but missing data are causing
problems.
g<-structure(list(Date = structure(c(11322, 11687, 12052, 11322,
11687, 12052, 11322, 11687, 12052, 11322, 11687, 12052), class = "Date"),
variable = c("Govt Revenues to GDP", "Govt Revenues to GDP",
"Govt Revenues to GDP", "Govt Revenues to GDP", "Govt Revenues to GDP",
"Govt Revenues to GDP", "Structural Budget Position", "Structural
Budget Position",
"Structural Budget Positi...
2012 Jan 18
0
Time series questions
Hi, I am trying to teach myself some time series analysis.
I have some time series data on GDP, quarterly, from 1947 to 2011. colnames
are "Year" "Quarter" "GDP" and "GDP.deflator"
The first problem I have is that 4th quarter 2010 is missing--not even NA,
there is no record for Year=2010 and Quarter =4, so instead of 260 rows, I
only have 259. To so...
2001 May 06
1
legend/text in time series plot
hi,
i need help on placing legend/text in a time series plot. here is what
i am doing (i am using rw1022 on windoze 2000):
#read data file
gdpn <- scan("jngdpsa.dat", list(year=0, qtr=0, gdp=0));
gdpr <- scan("jrgdpsa.dat", list(year=0, qtr=0, gdp=0));
#convert to time series object
gdpn <- ts(gdpn$gdp, frequency=4, start=c(1955,2));
gdpr <- ts(gdpr$gdp, frequency=4, start=c(1955,2));
#plot two gdp time s...
2002 Jun 14
1
data.frame - transform
Hi there,
I have a data.frame (pwt6) which I would like to transform:
country year gdp
MEX 1950 2
MEX 1951 5
BOL 1950 4
BOL 1951 12
ITA 1950 45
ITA 1951 2
This should be the result:
year MEX.gdp BOL.gdp ITA.gdp
1950 2 4 45
1951 5 12 2
Right now I have this code (better - no code):
country.label<-names(table(pwt6$country))
result<-data.frame(year=NULL)
for(i in country.l...
2005 Oct 31
2
What is the history of CONFIG_EXT{2,3}_CHECK?
Can anyone tell me the history of CONFIG_EXT{2,3}_CHECK?
There is code for a "check" option for mount if these options are
enabled, but there's no way to enable them.
TIA
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
2007 Apr 25
0
sorting data help
I am trying to create a 2x2xk contingency table. The variables are GDP and
an income inequality statistic with year being the k levels. I want to
eventually run a loglinear model with the data. Currently the data is
organized by either year or country. example
Country Year log(GDP) sqrt(INEQ)
1 1980 24 5.3
1 1981 2...
2011 Aug 04
1
Running a column loop through the Moran.I function.
...data frames that consist of statistical information for most
countries around the world. One dataframe consists of the latitude and
longitude ("coord.csv") of each country, while the other consists of 100's
of different attributes ("countryattri.csv") for each country (like, GDP,
Population, etc.). The data is organized with a header and then countries
down the first column. I'm trying to run a spatial autocorrelation for each
column or attribute in the "attri" dataframe. The process for running this
on a single column is as follows:
example of "coord.c...
2011 Jun 26
2
Accessing variables in a data frame
Hello
My data.frame (dat) contains many variables named var.names and others
named var.names_var.id
For example
var.name <- c("gdp","inf","unp")
var.id <- c("w","i")
x <- paste(var.name, rep(var.id, each=length(var.name)), sep="_")
How can I access variables in the dama.frame by names listed in x, for
example to compute
gdp_w - gdp_i
inf_w - inf_i
unp_w - unp_i
o...
2008 Nov 22
1
declaring constants in an Sweave / LaTeX document
...; file:
==============================================================================
smallPlotSize = 4
<<fig1, echo=false, results=hide, height=smallPlotSize, width=smallPlotSize,
fig=true>>=
dat <- read.table("
http://www.stanford.edu/~xing/statfinbook/_BookData/Chap05/q_us_gdp.txt",
skip=2, header=T)
GDP <- ts(data=dat$VALUE, start=c(1947,1), frequency=4)
acf(GDP, type="correlation", main= "ACF of US GDP")
@
==============================================================================
This way I can tweak things if I have to include a bunc...
2013 May 04
2
Lasso Regression error
Hi all,
I have a data set containing variables LOSS, GDP, HPI and UE.
(I have attached it in case it is required).
Having renamed the variables as l,g,h and u, I wish to run a Lasso
Regression with l as the dependent variable and all the other 3 as the
independent variables.
data=read.table("data.txt", header=T)
l=data$LOSS
h=data$HPI
u=data...
2001 Sep 10
5
?? hmm ??
Hello again!
thanks to all who helped with overlay plots - v. easy in the end.
Anyway, another new(ba)bee type question - the gurus will cringe I'm sure!
Q. simple R function
mm <- function (u) {
x <- u$GDP
x
m <- mean(x)
m
}
When the function is called the vector "x" does not get printed from within
the function, but the mean value "m" does, why?
I think it's probably to do with scoping but don't really know.
The vector "x" can of course be printed with...
2017 May 20
2
[PATCH] drm: remove NULL pointer check for clk_disable_unprepare
....c | 3 +--
drivers/gpu/drm/mxsfb/mxsfb_drv.c | 3 +--
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c | 6 ++----
drivers/gpu/drm/omapdrm/dss/venc.c | 3 +--
drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 3 +--
drivers/gpu/drm/sti/sti_gdp.c | 3 +--
10 files changed, 17 insertions(+), 34 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index 9a9c407..70efe04 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -...
2011 Sep 21
1
Strucchange gbreakpoints
Hi,
I am a new user to R.
I am using strucchange to generate breakpoints:
--------------------------------------------------------------------------------------
> res <- gbreakpoints(GDP.new ~ 1,data=a,h=2,breaks=5)
> print(res)
Optimal 6-segment partition for `lm' fit:
Call:
gbreakpoints(formula = GDP.new ~ 1, data = a, h = 2, breaks = 5)
Breakpoints at observation number:
10 19 25 38 48
Corresponding to breakdates:
1960 1969 1975 1988 1998
------------------------...