[R] Shaded area

2023-03-01 Thread George Brida
Dear R users, I have an xlsx file (attached to this mail) that shows the values of a "der" series observed on a daily basis from January 1, 2017 to January 25, 2017. This series is strictly positive during two periods: from January 8, 2017 to January 11, 2017 and from January 16, 2017 to January

[R] Logistic regression for large data

2022-11-11 Thread George Brida
Dear R users, I have a database called Base.csv (attached to this email) which contains 13 columns and 8257 rows and whose the first 8 columns are dummy variables which take 1 or 0. The problem is when I wrote the following instructions to do a logistic regression , R runs for hours and hours

Re: [R] Mapping of groups of countries

2022-01-02 Thread george brida
lue",4),"green",rep("orange",3)) > for(i in 1:length(countries)) { > mapinf<-map(region=countries[i],col=countrycol[i],add=TRUE) > xpos<-sum(mapinf$range[1:2])/2 > ypos<-sum(mapinf$range[3:4])/2 > text(xpos,ypos,countries[i]) > } > >

[R] Mapping of groups of countries

2021-12-29 Thread george brida
Dear R users, I would like to map with R the following countries (with their names on the map) as follows: the first group in red composed by China, Bangladesh, Eypt, Indonesia, South Korea, Nigeria. The second group in blue composed by Brazil, Pakistan, Philippines, Vietnam. The third group in

Re: [R] Mapping of countries

2020-04-01 Thread george brida
> col="black", pos=3, cex=1) > > station$Lon and Lat in your coordinate position. > > Regards, > Ani > > > On Tue, Mar 31, 2020 at 10:58 PM george brida > wrote: > > > > Dear Jim, > > > > Is it possible to add also a title to this m

Re: [R] Mapping of countries

2020-03-31 Thread george brida
Dear Jim, Is it possible to add also a title to this map? Many thanks On Tue, Mar 31, 2020 at 2:29 PM george brida wrote: > Dear Jim, > > Thank you very much. I obtained now the required map. I would like to know > how to add the names of the countries. > > Best > Geor

Re: [R] Mapping of countries

2020-03-31 Thread george brida
2020 at 8:03 PM Erin Hodgess > wrote: > > > > Hello George! > > > > Do you mean to have a map of the world with these countries filled in, or > > to have just those countries on the map, please? > > > > Thanks, > > Erin > > > &g

Re: [R] Mapping of countries

2020-03-31 Thread george brida
quot;world",regions="Qatar",col="yellow",fill=TRUE,add=TRUE) > map("world",regions="United Arab > Emirates",col="lightblue",fill=TRUE,add=TRUE) > map("world",regions="Oman",col="lightgreen",fill=TRUE,add=TRU

Re: [R] Mapping of countries

2020-03-31 Thread george brida
map, please? > > Thanks, > Erin > > Erin Hodgess, PhD > mailto: erinm.hodg...@gmail.com > > > On Mon, Mar 30, 2020 at 7:38 PM george brida > wrote: > >> Dear R users, >> >> i would like to plot the maps of the Gulf Cooperation Counci

[R] Mapping of countries

2020-03-30 Thread george brida
Dear R users, i would like to plot the maps of the Gulf Cooperation Council (GCC) countries (KSA, Qatar, Bahrain, Kuwait, UAE and Oman) with these constraints: i/ KSA , Qatar and Bahrain have the same face color , ii/ Kuweit and UAE with the same face color and iii/Oman with another face color.

[R] diff doesnot work

2017-02-06 Thread george brida
Dear R users, I have a txt file entitled coc composed by one column of numeric values without header and having 50 rows. This file is under the following path: C:\\Users\\intel\\Documents\\TR I have written the following lines:

Re: [R] Matrix multiplications

2016-05-21 Thread george brida
Thank you very much Peter. On Sat, May 21, 2016 at 9:18 PM, peter dalgaard <pda...@gmail.com> wrote: > > > On 21 May 2016, at 21:00 , george brida <george.br...@gmail.com> wrote: > > > > Dear R users: > > > > I ha

Re: [R] Matrix multiplications

2016-05-21 Thread george brida
, Roy Mendelssohn - NOAA Federal < roy.mendelss...@noaa.gov> wrote: > > str(t(y-X %*% b)) > num [1, 1:10] 0.595 -1.7538 -0.0498 -1.651 -0.6328 ... > > str((y-X %*% b)) > num [1:10, 1] 0.595 -1.7538 -0.0498 -1.651 -0.6328 … > > -Roy > > > > On May 21,

[R] Matrix multiplications

2016-05-21 Thread george brida
Dear R users: I have written the following lines : >x=c(10,11,12,13,14,17,15,16,10,11,41,25,26,14,12,14,15,20,14,22) > x=matrix(x,ncol=2) > a=matrix(1,nrow(x),1) > X=cbind(a,x) >y=c(12.00, 11.00, 13.00, 12.50, 14.00, 18.50, 15.00, 12.50, 13.75, 15.00) >b=solve(t(X)%*% X)%*% t(X)%*% y when I

[R] Problem with plm package

2014-01-29 Thread george brida
Dear friends, I have a csv data entitled GFS in the following path: c:\TEG This data is attached with this mail. When I wrote the following lines: y=read.csv(c:\\TEG\\GFS.csv, header=FALSE, sep=;) purtest(y, pmax = 4, exo = intercept, test = hadri) I obtained the following message: Error in

Re: [R] Problem with plm package

2014-01-29 Thread george brida
Hi Arun you can't open the file? On Wed, Jan 29, 2014 at 9:23 PM, arun smartpink...@yahoo.com wrote: Hi, Your attachment didn't came through. A.K. On Wednesday, January 29, 2014 12:03 PM, george brida george.br...@gmail.com wrote: Dear friends, I have a csv data entitled GFS

Re: [R] Problem with plm package

2014-01-29 Thread george brida
Ah ok. the problem is somewhat great, I can't rewrite it in txt file. On Wed, Jan 29, 2014 at 10:48 PM, george brida george.br...@gmail.comwrote: Ah ok. the problem is somewhat great, I can't rewrite it in txt file. On Wed, Jan 29, 2014 at 9:52 PM, arun smartpink...@yahoo.com wrote: HI