[R] MSVAR model

2017-12-09 Thread ah a via R-help
Hello, As I'm interested to search about the monetary transmission channel in our country by MSVAR model,Could you do me favor and tell me How I can run different types of MSVAR model (such as MSIAH(2)-VAR(2)) and finding impulse response function in different regimes and also variance decompositi

Re: [R] svyglm

2017-12-09 Thread Anthony Damico
hi, could you create a reproducible example starting from http://asdfree.com/pesquisa-nacional-de-saude-pns.html ? thanks On Mon, Dec 4, 2017 at 9:56 AM, Luciane Maria Pilotto via R-help < r-help@r-project.org> wrote: > Hi, > I am trying to run analyzes incorporating sample weight, strata and >

Re: [R] Remove

2017-12-09 Thread Ashta
Thank you All !! Now, I have plenty of options to chose. On Sat, Dec 9, 2017 at 1:21 PM, William Dunlap wrote: > You could make numeric vectors, named by the group identifier, of the > contraints > and subscript it by group name: > >> DM <- read.table( text='GR x y > + A 25 125 > + A 23 135 > +

Re: [R] Remove

2017-12-09 Thread William Dunlap via R-help
You could make numeric vectors, named by the group identifier, of the contraints and subscript it by group name: > DM <- read.table( text='GR x y + A 25 125 + A 23 135 + A 14 145 + A 35 230 + B 45 321 + B 47 512 + B 53 123 + B 55 451 + C 61 521 + C 68 235 + C 85 258 + C 80 654',header = TRUE, stri

Re: [R] Remove

2017-12-09 Thread David Winsemius
> On Dec 8, 2017, at 6:16 PM, David Winsemius wrote: > > >> On Dec 8, 2017, at 4:48 PM, Ashta wrote: >> >> Hi David, Ista and all, >> >> I have one related question Within one group I want to keep records >> conditionally. >> example within >> group A I want keep rows that have " x" value

Re: [R] Remove

2017-12-09 Thread Ek Esawi
HI-- How about this one. It produces the desired result. If you have more conditions, you can put them in a matrix/DF form and subset as suggested by one of the previous suggestion. DM[(DM$GR=="A"&DM$x>=15&DM$x<=30)|(DM$GR=="B"&DM$x>=40&DM$x<=50)|(DM $GR=="C"&DM$x>=60&DM$x<=70),] EK On Sat, De

Re: [R] trying to find the multiple combinations...

2017-12-09 Thread Bert Gunter
Off topic, but for the record... As Jeff already noted,the equation reduces to a single linear equation with rational coefficients, so of course there are infinitely many integer solutions. Apologies for my dummheit. -- Bert On Fri, Dec 8, 2017 at 9:47 AM, Bert Gunter wrote: > Please keep all

[R] help

2017-12-09 Thread yadav neog
dear members, I want to run Toda Yamamoto causal test in my data. I have gone through the some of the examples. but unable to understand wald.test. especially the 'term' argument. kindly help me in understand wald.test ?? -- Yadawananda Neog Research Scholar Department of Economics Banaras Hindu

Re: [R] Remove

2017-12-09 Thread Rui Barradas
Hello, Try the following. keep <- list(A = c(15, 30), B = c(40, 50), C = c(60, 75)) sp <- split(DM$x, DM$GR) inx <- unlist(lapply(seq_along(sp), function(i) keep[[i]][1] <= sp[[i]] & sp[[i]] <= keep[[i]][2])) DM[inx, ] # GR x y #1 A 25 125 #2 A 23 135 #5 B 45 321 #6 B 47 512 #9