similar to: calculating median with a condition

Displaying 20 results from an estimated 100 matches similar to: "calculating median with a condition"

2009 Jun 06
2
extract rows having negative values
Hello, I have a matrix with 6 columns and 12 rows. I want to extract out those IDs (rownames) from my matrix which have a negative values. For each ID(row) if the negative value is even under 1 column it needs to be extracted out. I will be grateful for any correct suggestion. Thanks Manisha Here is the matrix that I am working on: ID A B C D E F 1 -4.18972 -3.8946
2008 Jun 10
2
convert characters into integers in a matrix
Hello, I will appreciate any suggestion for this simple problem. I have a matrix of characters "A", "P", "M". I want to convert those characters to integers 0,1, 1 respectively. I am using the following R statements: exprs.new<-gsub("P",1,exprs) exprs.new1 <- gsub("A",0,exprs.new) exprs.new2 <-
2008 Feb 27
2
problem with creation of eSet
Hi, I am having troubles with creating an eSet and would appreciate any help on the following problem. I am trying to create an eSet using the following code pd <- read.table(file="pdata.txt",header =TRUE,row.names=1); colnames(pd) <- c("type","tumor","time","id"); pdN <- list(type =
2009 Aug 01
3
how do i retain decimal values
Hello, I am trying to do a spearman correlation. My data has tied values. To overcome this issue, I am adding some random noise (values) to my original data. However when I add the random noise to the data, the final matrix does not show the new values. I guess the reason being that the noise I add is very small and the full value including the decimals gets truncated to show only the value
2008 Jun 12
1
save workspace while running R on a cluster
Hello, I have a question about running R in a cluster environment. The shell script I am running looks like this: #!/bin/bash cd /nfs/apollo/2/c2b2/users/mb0001/Data /nfs/apollo/1/shares/software/core_facility/local/x86_64_rocks/R/current/bin/ R --save < calculate.R >& script.out I have used the "-save" command to save the R workspace (If, I understand it
2007 Nov 09
1
scaling x-axis in hist function
Hi, I have a query regarding usage of hist (histogram) function in R. I have a data where the range of the x -axis is from 0.0-1.0. When I use hist the ticks on the x-axis it gives me by default is at 0.0,0.2,0.4,0.6,0.8 and 1.0. If I want more ticks such that the x-axis has 0.0,0.1,0.2,0.3...till 1.0 what parameter should I use in the hist function? Thanks manisha
2008 Jan 03
1
help with combining matrix and list into dataframe
Problem################################################################# I am having a problem combining a matrix and elements of a list into one data frame. Data#################################################################### The matrix is ludwig.results and dim of matrix is 213,8. The list is called symbols and its length is 213. Following is an example the structure of my matrix
2009 Jun 07
1
Convert a lis to matrix
Hello, This is an urgent request. I want to convert a list of 3 elements into a matrix and I am not sure how to do it. The list looks like this: List of 3 $ : num [1:15364, 1] 0.133 0.622 0.588 1.024 0.583 ... ..- attr(*, "dimnames")=List of 2 .. ..$ : chr [1:15364] "6420681" "3610072" "2260458" "60689" ... .. ..$ : NULL $ :
2011 Jan 19
1
Pearson correlation with randomization
Hello, I will be very obliged if someone can help me with this statistical R problem: I am trying to do a Pearson correlation on my datasets X, Y with randomization test. My X and Y datasets are pairs. 1. I want to randomize (rearrange) only my X dataset per row ,while keeping the my Y dataset as it is. 2. Then Calculate the correlation for this pair, and compare it to your true
2001 Nov 27
3
Table Command (PR#1182)
Full_Name: Manisha Desai Version: 1.3.0 OS: UNIX Submission from: (NULL) (156.111.36.213) There may be a bug in the table command. The value of 0 does not appear to show up (at least in this version of R). The following is an example: > blah<-c(rep(1,100),rep(0,100)) > table(blah) Gives the following: blah 1 100 Doing a summary shows that blah does contain values of 0. >
2009 Jun 08
0
SMACOF joint configuration plot with bread data? (Michael Kubovy)
Hi Michael, with res.uc$conf you'll get the single configurations for each rater. You can use these to produce the plot you want to have. Best, Patrick r-help-request at r-project.org wrote: > Send R-help mailing list submissions to > r-help at r-project.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://stat.ethz.ch/mailman/listinfo/r-help >
2008 Dec 24
1
Need help : Rails app unable to connect to Solr server
Hi, I am trying to integrate solr in ruby on rails application.For that i am using the plugin acts_as_solr and gem solr-ruby. My solr server starts successfully with command $ rake solr:start But when I try to add data from $ script/console , it says that it cannot connect to solr server at the corresponding port.Same is the result if i try the browser to link to http://localhost:8982/solr
2009 Feb 09
13
mysql install problem
Hi, I got Mac OS X 15.6 installed, Locomotive 2.0.8 and MYSQL 5.0.67 running. I''m having this problem when I try to install mysql gem: Last login: Mon Feb 9 13:37:37 on ttys001 source /var/folders/be/bexGvm9pHdq0vcEmR8-WWk+++TM/-Tmp-//39E424DB-A260-4E41-AA2E-30B64FB46F3C-7395-00002254065EA712.environment.bash You have mail. MBPEduCirilo:~ eduardocirilo$ source
2011 Jan 22
0
how to call BayesX in R to see the graph
Hi Everybody, please can you help me how to call BayesX in R in order to see the graph already exist in BayesX Thanks ---------- Forwarded message ---------- From: <r-help-request@r-project.org> Date: Sat, Jan 22, 2011 at 5:00 AM Subject: R-help Digest, Vol 95, Issue 22 To: r-help@r-project.org Send R-help mailing list submissions to r-help@r-project.org To subscribe or
2008 Aug 29
0
Fw: Voice Activation Level (speex 1.1.11.1)
Manisha, I'm still here. :-) Here's the function: // Returns the average power level in the given signal float getPower(signed short int *signal, int numSamples) { int i; float amp; float powerSum = 0.0f; for (i = 0; i < numSamples; i++) { amp = (float) abs(signal[i]); powerSum += amp * amp; } return powerSum / (32768.0f * 32768.0f *
2004 Jul 21
0
ILOG/JRULES/J2EE project opportunity
Hi Please call or email me if you would be interested in the following project Senior Rules Engine (ILOG) Consultant Location: Saint Louis, MO Duration: 6 months Skills: At least 5 years strong development experience with OO languages, specifically on complex web applications using Java J2EE 3 years of Rules Engineering experience, Rules engine : ILOG experience is required
2008 Jun 27
0
Fixed-point AGC, snapshot
Is there any update on this implementation of Fixed-point AGC? We tested the code from Thorvald Natvig. If we can get some idea about the scaling factors - how to set/ calculate for the float to fix conversion, we will try to get up this code. Thanks Regards Manisha Tidke -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Nov 13
0
need help with error message:Error in lm.fit(design, t(M)) : incompatible dimensions
Hello, I am trying to run a code (see reference section) and when I run the line: fit<-lmFit(xen1dataeset,design), I get the error message: Error in lm.fit(design, t(M)) : incompatible dimensions I will really appreciate if someone can help me understand this error message and possibly help me debug the problem. Thanks manisha Reference section xen1data<-ReadAffy()
2008 Dec 23
2
NoMethodError in Book#show_subjects
Hi, I am quite new to ROR.I am trying to create a rails simple application that has informations about Books and Subjects.Srangely, I finished creating a basic application, and it worked fine. But then , I just tried to add some more values in the database, and faced problem with migration, that just made me crazy. SO I deleted the database and did the database and migration thing all over again
2013 Nov 05
0
[LLVMdev] reg : error while building llvm IR code generator
Sir, I get the following error after I have downloaded entire llvm libraries and then compiled the llvm IR code generator code. fatal error: 'llvm/IR/DerivedTypes.h' file not found #include "llvm/IR/DerivedTypes.h" ^ 1 error generated. Could you please tell me as to why is the above error generated ? And how should I proceed further ? Thanks and Regards Radzz --------------