Re: [R] Question about subset

2018-04-08 Thread David Winsemius
Sent from my iPhone > On Apr 8, 2018, at 9:06 PM, Sebastien Bihorel > wrote: > > Hi, > > The help page for subset states "subset: logical expression indicating > elements or rows to keep: missing values are taken as false." > > Before I try to re-invent the wheel, I would like to know if o

Re: [R] Question about subset

2018-04-08 Thread Bert Gunter
Please read the "Details" section of the help file -- it essentially tells you what to do by directly using indexing; e.g. for a vector, index by: [is.na(subset) | subset] . Adjust as necessary for your data structure.Or look at the code of, e.g. subset.data.frame and create your own subset versi

[R] Question about subset

2018-04-08 Thread Sebastien Bihorel
Hi, The help page for subset states "subset: logical expression indicating elements or rows to keep: missing values are taken as false." Before I try to re-invent the wheel, I would like to know if one of the base or recommended packages would contain a variant of the subset function that would

Re: [R] Doubt_merging data

2018-04-08 Thread Jeff Newmiller
I don't see how anyone can help you if you don't provide the input data (or a fake version of the data) you are using. On April 8, 2018 3:47:55 PM PDT, Lara Dutra Silva wrote: >Hello, > >I gather data from 5 objects and 5 data. frames and would like to join >information. > >join: pb_SM + pb_

[R] Doubt_merging data

2018-04-08 Thread Lara Dutra Silva
Hello, I gather data from 5 objects and 5 data. frames and would like to join information. join: pb_SM + pb_T + pb_P + pb_F + pb_SJ = total_pb join: sdmdata_SM + sdmdata_T + sdmdata_P + sdmdata_F + sdmdata_SJ =total_sdmdata code: rbind, merge? total_pb<- ?? total_sdmdata<- ?? 1 absva

Re: [R] Syntax roccomp-using R

2018-04-08 Thread Bert Gunter
I do not provide consulting services, so you're on your own. As I said earlier, you need to follow the posting guide and show us what efforts you have made. "None" will probably not succeed in getting anyone to help. Nor should you expect anyone on this list to be familiar with Stata and/or to do y

Re: [R] Fast tau-estimator line does not appear on the plot

2018-04-08 Thread varin sacha via R-help
Many thanks Jeff, Le samedi 7 avril 2018 à 07:21:31 UTC+2, Jeff Newmiller a écrit : You need to pay attention to the documentation more closely. If you don't know what something means, that is usually a signal that you need to study more... in this case about the difference between

Re: [R] Syntax roccomp-using R

2018-04-08 Thread Hamzah Hasyim
*Dear Bert, * Thank you very much for your feedback and the useful link https://rseek.org/ and https://www.r-bloggers.com/calculating-auc-the-area-under-a-roc-curve/. Actually, I want to know different performance between Stata and R, in multilevel logistic regression. For this purposes, I replica

Re: [R] How to script the script sample into script "OR", please advice

2018-04-08 Thread Bert Gunter
1. *If* this is homework, we do not do homework here. 2. Please read and follow the posting guide linked below to get a useful answer. In general, we expect posters to provide code showing their attempt to solve the problem, rather than expecting to be provided complete solutions. See also instruc