search for: butwhen

Displaying 1 result from an estimated 1 matches for "butwhen".

Did you mean: between
2004 Nov 12
2
Simple operation on a subset of data
...on. I am trying to perform a simple operation on a subsample of my data loaded as data and attached: data<-read.dta(name file) attach(data) Say x=1,2 and y=4,5 I want to summarize z only if x=1 & y=4. I thought that the way to do that would be to write if((x=1) & (y=4)) summary(z) butwhen I do this the result I get is for the whole data (irrespective of the conditions imposed). Can anyone help? Thanks Giacomo [[alternative HTML version deleted]]