Hi, I have a problem to understand the use of subsets of data while running a regression model. In particular, I am using sm.regression with these commands plot(lndip96,gdip,col=1,type= "n") sm.regression(add=T,lndip96,gdip) and I must run this model for two subsets of the data; in particular for lndip<=2.7 and for lndip>2.7. Thank you in advance for your help Roberto Basile ISAE (Istituto di Studi e Analisi Economica) Piazza Indipendenza, 4 Roma Tel. 06-44482874 Cell. 3286165588 [[alternative HTML version deleted]]
Uwe Ligges
2003-Sep-22 12:44 UTC
[R] indexing, subsets, or: not willing to read a manual; was: (no subject)
Roberto Basile wrote:> Hi, I have a problem to understand the use of subsets of data while running a regression model.So, why don't you read a manual or some help pages? Since you already talked about subsets, I would have taken a look at ?subset which points you also to ?"[" Please use a sensible subject when posting to a list.> In particular, I am using sm.regression with these commands > > plot(lndip96,gdip,col=1,type= "n") > sm.regression(add=T,lndip96,gdip)BTW: Strange ordered arguments, here.> and I must run this model for two subsets of the data; in particular for lndip<=2.7 and for lndip>2.7.What about indexing with, e.g. YourVector[lndip <= 2.7] Uwe Ligges> Thank you in advance for your help > > Roberto Basile > ISAE (Istituto di Studi e Analisi Economica) > Piazza Indipendenza, 4 > Roma > Tel. 06-44482874 > Cell. 3286165588 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help