Re: [R] two difficult loop

2016-06-12 Thread greg holly
Hi Jim; Thanks so much for this info. I did not know this as I am very much new in R, So do you think that, rather than using unique !duplicated would be better to use? Thanks in advance, Greg On Sun, Jun 12, 2016 at 7:06 PM, Jim Lemon wrote: > Hi Greg, > You've got a problem that you don't s

Re: [R] two difficult loop

2016-06-12 Thread greg holly
Hi Bert; I do appreciate for this. I need check your codes on task2 tomorrow at my office on the real data as I have difficulty (because a technical issue) to remote connection. I am sure it will work well. I am sorry that I was not able to explain my first question. Basically Values in ref data

Re: [R] two difficult loop

2016-06-12 Thread Jim Lemon
Hi Greg, You've got a problem that you don't seem to have identified. Your "reg" field in the "map" data frame can define at most 10 unique values. This means that each value will be repeated about 270 times. Unless there are constraints you haven't mentioned, we would expect that in 135 cases

Re: [R] two difficult loop

2016-06-12 Thread Bert Gunter
Greg: I was not able to understand your task 1. Perhaps others can. My understanding of your task 2 is that for each row of ref, you wish to find all rows,of map such that the reg values in those rows fall between the reg1 and reg2 values in ref (inclusive change <= to < if you don't want the end

[R] two difficult loop

2016-06-12 Thread greg holly
Dear all; I have two data sets, data=map and data=ref). A small part of each data set are given below. Data map has more than 27 million and data ref has about 560 rows. Basically I need run two different task. My R codes for these task are given below but they do not work properly. I sincerely

[R] Help with function lmodel2

2016-06-12 Thread avcommande
Hello everyone,   Does anybody know whether it's possible to calculate extract major axis regression residuals on the results of a major axis Model II regression done by lmodel2? Many thanks, Orca   Example :   > data1 data1     SSTo  SSTp 1  17.21 20.36 2  19.61 20.19 3  18.60

Re: [R] Help: How to Convert Binary Data into Text Using R

2016-06-12 Thread Bert Gunter
Suggestion: Before posting here, search! You are likely to get the info you want a lot faster. The rseek.org website is particularly helpful, but google, bing, etc. are also typically useful. The phrase "read binary data" brought up many hits on rseek, but as a Bob said, you may need to refine/cla

Re: [R] Help: How to Convert Binary Data into Text Using R

2016-06-12 Thread boB Rudis
Welcome to R and R-help! It would help others help you if you provided a minimal example and explained your situation with a bit more details. It's pretty vague as it stands. Base R has both a `readBin()` and `rawConnection()` functions (amongst other tools for such things) and there are a few pa

[R] PSM With Panel Data

2016-06-12 Thread Ahmed Raza via R-help
Hi All,  I have a panel data and I am applying Propensity Score Matching on it. I have multiple treatments (4 treatments). I have estimated the model on the full sample using the CBPS Package. However, I want to perform matching on yearly basis. After extensive search, I could not figure out tha

[R] Help: How to Convert Binary Data into Text Using R

2016-06-12 Thread Fahman Khan via R-help
Good Evening, Just started learning R and one of the task given to me is to convert Binary Data into text. I'm not sure what package i'm suppose to use. Can i get an idea of how i can convert binary into text.  Regards,Fahman Khan [[alternative HTML version deleted]]

Re: [R] itsadug:: plot_smooth and plot_diff

2016-06-12 Thread Bert Gunter
To be clear, I know nothing about bam; I just wanted to correct a statistical error: "Since the 95% confidence intervals overlap, I would assume that there is no difference in accuracy between the two conditions." That is false. You need to look at a CI for the difference. As you appear to be co

[R] itsadug:: plot_smooth and plot_diff

2016-06-12 Thread Fotis Fotiadis
Hi all I am using bam to analyse the data from my experiment. It's a learning experiment, "acc" denotes accuracy and "cnd" denotes a within-subjects variable (with two levels, "label" and "ideo")."Ctrial" is centered trial (ranging from 1 to 288). The model is: bam(acc~ 1 + cnd + s(ctrial) + s(ct

[R] need help in using times delay in boolnet package

2016-06-12 Thread mohammad alsharaiah
Hi,, every one , im using Boolnet package inside R environment to create a Boolean network. i created a boolean network by using boolnet package and i need to apply time delays on some of element in the network. For instance, i have elements A, B, C which they need one time step to be active or i