search for: dax42

Displaying 8 results from an estimated 8 matches for "dax42".

2005 Jan 05
3
strange behaviour of negative binomial
Dear list, I ran into a strange behaviour of the pnbinom function - or maybe I just made a stupid mistake. First thing is that pnbinom seems to be very slow. The other - more interesting one - is that I get two different curves when I plot the estimated density and the density given by pnbinom. Shouldn't it be the same? This is only the case, I think, if I use the parameter size = 1. I
2005 Jan 28
4
extracting from a data.frame
Hi, I am sorry for this simple question, but... How do I extract something from a data.frame? The following is my Problem: I have got a dataframe "a" with various columns. One of those columns is called V3 and contains elements of the following levels: > levels(a$V3) [1] "C" "CA" "CB" "CD" "CD1" "CD2"
2004 Dec 29
6
numeric(0)
Dear all, I am trying to calculate a score for a string sequence consisting of the following four letters: ACGT. I have got a matrix giving the scores for each pair of letters. So for example the string ACCT has got the pairs: AC, CC and CT. The matrix has got the following form: names<-c("A","C","G","T"); mscore<-matrix(0,4,4);
2004 Dec 30
3
labels and counting
Hello, I have got the following problem: given is a large string sequence consisting of the four letters "A" "C" "G" and "T" (as before). Additionally, I have got a second string sequence of the same length giving a label for each character. The labels are "+" and "-". Now I would like to create an 8x8 matrix which contains the
2005 Jan 29
3
unique rows
Dear list, I would like to extract from a matrix all those rows, that are unique. By unique, I don't mean the unique that is accomplished by the function unique(), though... Consider the following example: > h [,1] [,2] [1,] 4 4 [2,] 1 4 [3,] 4 1 Now unique(h) returns exactly the same - because 1 4 and 4 1 is not the same for that function. What I would like to
2005 Jan 04
1
quantiles for geometric distribution
Dear list, I have got an array with observational values t and I would like to fit a geometric distribution to it. As I understand the geometric distribution, there is only one parameter, the probability p. I estimated it by 1/mean(t). Now I plotted the estimated density function by plot(ecdf(t),do.points=FALSE,col.h="blue"); and I would like to add the geometric distribution. This
2005 Jan 28
3
avoiding loops
Hi again, thanks a lot for the quick answer. I just forgot the comma, always these stupid mistakes... Anyways, as I said before, I have two data.frames containing about 1000 rows and I would like to avoid looping through all of them... In each data.frame are coordinates (x,y,z), so every row is giving the information on one single point. I would like to calculate the distance from each point
2004 Dec 30
1
number format
This mailing list truly is amazing. Thank you so much for all the help! I feel a little strange asking something that "simple" again, but I wasn't able to find it in the help... Is there a way to tell R how to display numbers (double)? How many numbers after the decimal point, etc... Thanks again, folks and have a nice New Years Eve! Dax