Displaying 20 results from an estimated 6000 matches similar to: "Best way to arrange data"
2011 Aug 27
1
Overdispersed GLM
Hi all,
I have the following data:
rep1_treat rep2_treat rep1_control rep2_control
2 3 4 5
100 20 98 54
0 1 2 3
23 32 27
2012 Jul 05
3
Histogram
I have a column of 1000 datapoints from the normal distribution with mean 2
and variance 4. How can I get a histogram of these observations with 20
bins with each bin having 50 observations?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2013 Mar 18
4
Counting confidence intervals
Hi,
I have a 2 x 10000 matrix of confidence intervals. The first column is the
lower and the next column is the upper. I want to cont how many times a
number say 12 lies in the interval. Can anyone assist?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Jul 07
4
Simulating from the null distribution of a 2 x 3 table
Dear all,
I want to simulate from the null distribution of the following 2 x 3 table,
2 5 10
4 8 5
I am using a chi-squared test.
Anyone has any idea how to do this?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Apr 08
4
Fast version of Fisher's Exact Test
Is anyone aware of a fast way of doing fisher's exact test for a series of 2
x 2 tables in R? The fisher.test is really slow if n1=1000 and n2 = 1000.
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Aug 22
2
CDFs
Hello all,
I have two columns of numbers. I would like to do the following:
(1) Plot both cdfs, F1 and F2 on the same graph.
(2) Find smoothed approximations of F1 and F2 lets call them F1hat and F2hat
(3) Find values for F1hat when we substitue a value of x in it.
(4) Find the corresponding densities of the cdfs.
Any ideas?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2010 Oct 22
2
Bayesian constrained regression method?
Hello everyone,
I am trying to estimate the parameter b.
I have Y and X1 which I know and they are both random. However, I also have
X2 which I don't know and is also random. I want to estimat b from the
model:
Y = b*X1 + ( 1 - b ) * X2
Can anyone offer some suggestions. The values of Y and X1 are both pvalues
so they are constrained in (0,1).
--
Thanks,
Jim.
[[alternative HTML version
2011 Mar 20
3
Part of a density plot
Suupose I have
y <- rbeta(10000, 2, 5)
and I only want to see only the density plot from x = 0 to x = 1
How do I do this?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Mar 21
2
Part of density plot not showing up
I am doing a histogram with 2 superimposed densities. However, the density
of one of the graphs is not coming out..its being erased.. Any ideas on how
to fix this problem?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Jun 04
3
cbind 3 or more matrices
How can I cbind three or more matrices like A,B and C. This does not work:
cbind(A,B,C)
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2009 Aug 09
3
howto get the number of columns and column names of multiply data frames
Hi,
I' ve read in several files with measurements into R data frames(works
flawlessly). Each dataframe is named by the location of measurement and
contains hundreds of rows and about 50 columns like this
dataframe1.
date measurment_1 .... mesurement_n
1
2
3
..
..
..
n
For further processing I need to check whether or not ncol and colnames are
the same for all dataframes.
Also I need to
2011 Jun 21
4
Re; Getting SNPS from PLINK to R
I a using plink on a large SNP dataset with a .map and .ped file.
I want to get some sort of file say a list of all the SNPs that plink is
saying that I have. ANyideas on how to do this?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2010 Nov 30
2
Adding noise
Hello,
I have some discrete pvalues and I would like to sort them. Then add random
noise so that they are ordered the same way as the original pvalues. Off
course I don't want any pvalues less than 0 or greater than 1. Any ideas on
how to do this in R?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Jun 02
3
Removing rows of zeros from a matrix
Hi,
Can someone tell me how to remove rows of zeros from a matrix?
For example if I have the following matrix,
0 0
0 1
2 8
0 0
4 56
I should end up with
0 1
2 8
4 56
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Mar 16
2
Re; Fitting a Beta distribution
I want to fit some p-values to a beta distribution. But the problem is some
of the values have 0s and 1's. I am getting an error if I use the MASS
function to do this. Is there anyway to get around this?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Sep 22
2
Proportions of a vector
>
> Hi all,
> I have a vector xm say: xm = c(1,2,3,4,5,5,5,6,6)
>
> I want to return a vector with the corresponding probabilities based on the
> amount of times the numbers occurred. For example, I should get the
> following vector for xm:
> prob.xm = c(1/9, 1/9, 1/9, 1/9, 3/9, 3/9, 3/9, 2/9, 2/9)
>
Using prop.table gives:
Usage (with table)
> prob.xm <-
2011 Aug 24
4
Column of probabilities
Hi all,
I have a vector xm say: xm = c(1,2,3,4,5,5,5,6,6)
I want to return a vector with the corresponding probabilities based on the
amount of times the numbers occurred. For example, I should get the
following vector for xm:
prob.xm = c(1/9, 1/9, 1/9, 1/9, 3/9, 3/9, 3/9, 2/9, 2/9)
Any help greatly appreciated.
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2006 Oct 03
1
Error in X11 (PR#9272)
Full_Name: Frank Sch?ffer
Version: 2.3.1
OS: Ubuntu 6.10 (Edgy Eft)
Submission from: (NULL) (86.56.0.173)
frank at darwin:~$ R
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0
R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()'
2011 Aug 23
2
qnorm?
Hi everyone,
I have the following problem. I have some small p-values but when I use
qnorm(1-4e-30)
I get an error.
Is there anyway to get around this?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2011 Aug 22
3
Changing data scales
I have data that ranges from 0.3 to 2 and I want to change the scale to be
from 0 to 1.
Can this be done in R?
--
Thanks,
Jim.
[[alternative HTML version deleted]]