Displaying 20 results from an estimated 9000 matches similar to: "Classifying values in vector"
2005 Jul 26
1
Help on T test
ok I created a matrix C with
A B C A1 B1 C1
..................................
.................................
the columns contain the gene expression values..
I ran the following t.test:
apply(C, 1, function(x) t.test( x[1:3], x[4,6] )$p.value )
which outputs out 16063 pvalues (the number of rows)
I just want to output 3 pvalues showing if A's column is different from A1
2008 Mar 25
1
Subset of matrix
Dear R users
I have a big matrix like
6021 1188 790 290 1174 1015 1990 6613 6288
100714
6021 1 0.658 0.688 0.474 0.262 0.163 0.137 0.32
0.252 0.206
1188 0.658 1 0.917 0.245 0.331 0.122 0.148 0.194
0.168 0.171
790 0.688 0.917 1 0.243 0.31 0.122 0.15 0.19
0.171 0.174
290 0.474
2005 Nov 21
2
Removing Rows
I have a data frame with the following dimensions 217 x 5
I want to create two data frames from the original.
1) One containing every tenth row of the original data frame
2) Other containing the rest of the rows.
How do I do this? I've tried subset() and calling the index.
thank you in advance,
[[alternative HTML version deleted]]
2004 Sep 11
4
Cancor
Dear R's!
I am strugling with cancor procedure in R. I cannot figure out the
meaning of xcoef and of yxcoef.
Are these:
1. standardized coefficients
2. structural coefficients
3. something else?
I have tried to simulate canonical correlation analysis by checking the
eigenstructure of the expression:
Sigma_xx %*% Sigma_xy %*% Sigma_yy %*% t(Sigma_xy).
The resulting eigenvalues were the same
2013 Nov 28
1
Relative Cumulative Frequency of Event Occurence
Hi,
My objective is to calculate "Relative (Cumulative) Frequency of Event
Occurrence" - something as follows:
Sample.Number 1st.Fly 2nd.Fly Did.E.occur? Relative.Cum.Frequency.of.E
1 G B No 0.000
2 B B Yes 0.500
3 B G No 0.333
4 G B No 0.250
5 G G Yes 0.400
6 G B No 0.333
7 B B Yes 0.429
8 G G Yes 0.500
9 G B No 0.444
10 B B Yes 0.500
Please refer to the code below:
2023 Jul 04
1
Getvar of CHANNEL not working for a couple of items
Building on my last message, I am trying to get CHANNEL data using getvar (through the AMI). And although I'm getting responses, some values returned seem illogical. For example, phone 111 calls phone 222 via the PBX. Here's the data I get back
Channel A: "1688509741.112" , name: "PJSIP/111-00000064" , is originator: Y , call-Id: "u.l6kcou25cax60 at
2012 Jul 02
1
How to get prediction for a variable in WinBUGS?
Dear all,I am a new user of WinBUGS and need your help. After running the following code, I got parameters of beta0 through beta4 (stats, density), but I don't know how to get the prediction of the last value of h, the variable I set to NA and want to model it using the following code.Does anyone can given me a hint? Any advice would be greatly appreciated.Best
2006 Mar 07
7
reading in only one column from text file
How do I manipulate the read.table function to read in only the 2nd
column???
[[alternative HTML version deleted]]
2023 Jul 05
1
Getvar of CHANNEL not working for a couple of items
On Tue, Jul 4, 2023 at 7:52 PM TTT <lists at telium.io> wrote:
> Building on my last message, I am trying to get CHANNEL data using getvar
> (through the AMI). And although I'm getting responses, some values
> returned seem illogical. For example, phone 111 calls phone 222 via the
> PBX. Here's the data I get back
>
>
>
>
>
> Channel A:
2023 Jul 05
1
Getvar of CHANNEL not working for a couple of items
Channel A: "1688509741.112" , name: "PJSIP/111-00000064" , is originator: Y , call-Id: "u.l6kcou25cax60 at mydomain.com <mailto:u.l6kcou25cax60 at mydomain.com> " , local_uri: "<sip:222 at mydomain.com <mailto:sip%3A222 at mydomain.com> ;user=phone>" , local_tag: "1734d973-c4da-4ae8-a37d-5f7065f1fe54" , local_addr:
2010 Nov 29
3
How to initiate a two-party call from within Asterisk
The desired result is that user A's phone rings; when he picks it up,
user B is dialled, and user A's channel is connected to that. (This is
to be a back-end for a web-based address book.)
2011 Jun 10
3
Test if data uniformly distributed (newbie)
Hello,
I have a bunch of files containing 300 data points each with values from 0
to 1 which also sum to 1 (I don't think the last element is relevant
though). In addition, each data point is annotated as an "a" or a "b".
I would like to know in which files (if any) the data is uniformly
distributed.
I used Google and found out that a Kolmogorov-Smirnov or a Chi-square
2008 Mar 10
1
Local music on hold -- mohinterpret=passthrough assymetrical ?
Hi list,
I'm planning and testing a distributed asterisk deployment
throughout several sites; each will be connected to the PSTN
and all of them among themselves via IAX trunks. Phones
will be SIP.
I guess I already "solved" (worked-around, actually) asterisk's
codec negotiation limitations regarding local G.711 utilization vs.
remote G.729 while minimizing
2017 May 02
4
Multiple default gateway from tinc node
Hi, Lars
Thanks for your suggestion, will give it a try later to see how it performs.
But, yesterday, I did a below test:
A ConnectTo B and C, B ConnectTo D, C ConnectTo D; All nodes turned "IndirectData" on in its host configuration, so the tunnel only follow metacomnection instead of direct connect.
D announced default route by having the Subnet = 0.0.0.0/0 statement in its host
2012 Oct 11
2
Converting factors to bounded random numerical data
I have a data set (a) with 3 columns (X,Y,Z). The first 2 columns are
numerical. The third column (Z) is a factor with three levels ("A","B","C").
What I want to do is turn each of the "A's" into different random numbers
between 1 and 4, "B's" into a random number between 5 and 8, etc.
I tried this:
2006 Apr 02
2
VARIANCE across each ROW
I have a very large matrix. I would like to display the variance across each
row.
In other words, I want to output a vector containing the values of variance
across row.
When I use the function var(), it seems to give me the variability of each
column.
Any ideas??
[[alternative HTML version deleted]]
2013 Feb 14
4
2 setGeneric's, same name, different method signatures
hi. below is a small test case (hopefully minimal, though i'm still a
bit confused about initializers).
i would have guessed (and maybe i still would have been right) that one
could re-use the name of a generic function for functions with different
numbers of arguments. in the case below, class A's bB() queries the
status of a single A object, so bB(A) (where here "A" is an
2007 Jul 31
5
extract columns of a matrix/data frame
Hello all,
I have a matrix whose column names look like
a1 a2 b1 b2 b3 c1 c2
1 2 3 7 1 3 2
4 6 7 8 1 4 3
Now, I can have any number of a's. not just two as shown above and same goes for b's and c's. I need to extract all the a's columns and put them in another matrix, extract all b's columns and put them in some matrix
2006 Mar 21
3
ROWNAMES error message
I am getting an error message, which I do not know the source to.
I have a matrix SAMPLES that has preexisting rownames that I would like to
change.
GENE_NAMES contains these rownames.
> rownames(SAMPLES) = GENE_NAMES
Error in "dimnames<-.data.frame"(`*tmp*`, value = list(list(V1 = c(3843, :
invalid 'dimnames' given for data frame
> dim(SAMPLES)
[1] 12626
2006 Mar 16
6
removing ROWS with missing values
I am trying to find out if R can recognize specific criteria for removing
rows (i.e. a prexisting function)
I have a matrix myMatrix that is 12000 by 20
I would like to remove rows from myMatrix that have:
-999 across all columns
-999 across all columns but one
-999 across all columns but two
-999 across all columns but three
-999 across all columns but four
-999 across all columns but five