Displaying 20 results from an estimated 10000 matches similar to: "recategorizing a vector into discrete states"
2000 Jul 11
2
warnings associated with logistic regression
Hi all,
This is as much as statistical/estimation question as an R-specific
one, but here goes.
I am trying to use logistic regression to predict suitability of
habitats for certain plant species. The response variable is a binary
one that indicates whether a particular species is found at a site on
the landscape. The independent variables represent physical
characteristics of the landscape
2000 Jul 04
1
specifying a model formula on the fly
Hi All,
I'm trying to specify the formula for a glm based upon the names in
the data.frame. I always discard the first two variables in the frame
and the third will always be the only response variable. The problem
appears because I would like to specify the rest of the variables of
the data.frame as independent variables in the formula. I can't think
of a way to do this cleanly and
2002 Mar 07
8
linear correlation?
Whether the two variables have the same units does not matter. Moreover,
even if there were some way of converting cm to kg the correlation would
still be the same because the correlation is invariant under unit conversion
as it is invariant under multiplication of its arguments by a constant.
As for your second question, the correlation estimator is a continuous
function of each of the
2001 Sep 10
1
problems linking c++ code
I've been trying to learn about dynamically loading subroutines in R.
Ultimately I would like to use this approach to implement some
simulations. For the moment though, I've run into a problem compiling
c++ code and loading it into R.
The 'C/C++' and 'R'code below works fine when compiled and linked with
gcc, but gives an error when the library is compiled and linked with
2012 Jul 20
1
conditional subset and reorder dataframe rows
Hi List
I have a dataframe (~1,200,000 rows deep) and I'd like to conditionally reorder groups of rows in this dataframe.
I would like to reorder any rows where the Chr.Strand column contains a '-' but reorder within subsets delineated by the Probe.Set.Name column.
# toy example ####
library(plyr)
negStrandGene <- data.frame(Probe.Set.Name =
2009 Nov 18
2
Composing Data from THREE models with Aggregation
Hello! I''m looking for assistance EXTENDING an example from the Agile
Web Development With Rails book: Composing Data with Aggregation (page
324).
I''m trying to map three columns to a single Ruby object. However,
unlike the example in the Agile Web Development book, the three
columns I want to map into one object come from THREE DIFFERENT
models.
I want to map the following
2007 Mar 05
1
enumerating non-overlapping pairs of elements from a vector
Hi All,
I'm trying to come up with a clear and concise (and fast?) solution to
the following problem.
I would like to take a vector 'v' and enumerate all of the ways in
which it can be broken into n sets of length 2 (if the length of the
vector is odd, and an additional set of length 1). An element of 'v'
can
only appear in one set. Order within sets is not important.
2012 Sep 25
2
Recategorizing Nominal variable
Hello,
I would like to take a data set of doctors, and recategorize them into
numbers.
For example,
John Doe would be assigned as 1
Jane Doe would be assigned as 2
Does anyone know how to do this in R? It seems quite easy, yet I cannot
find the code.
Thank you,
Michael Leitson
Research Intern
MSAS Candidate
Michael.Leitson@wellstar.org
2008 Jul 08
2
list genes w/n a genomic fragment
Hi, is there any package/function in Bioconductor that can do this: if given
the chromosome positions of a fragment, find out all genes within, and with
the information about which strand is the sense strand. And vice versa.
Thanks a lot.
-----
Appreciate your time & attention!
--
View this message in context: http://www.nabble.com/list-genes-w-n-a-genomic-fragment-tp18331452p18331452.html
2008 May 28
2
Unexpected behaviour in reading genomic coordinate files of R-2.7.0
Great R people,
I have noticed a strange behaviour in read.delim() and friends in the R
2.7.0 version. I will describe you the problem and also the solution I
already found, just to be sure it is an expected behaviour and also to
tell people, who may experience the same difficulty, a way to overcome it.
And also to see if it is a proper behaviour or maybe a correction is needed.
Here is the
2001 Oct 06
0
calculating DNA mismatch distributions for large populations
Hi all,
I am interested in calculating and displaying the distributions of
pairwise comparisons between DNA sequences in populations. The
comparisons are the number of nucleotide sites that differ between the
two sequences (mismatches). My sequences are stored in a vector of
strings. There is an additional vector of the same length that
provides the indices to the DNA sequences. Finally, I
2003 Jul 16
4
how to handle missing values
This group impresses me, so far I have been helped with all my questions
within 24 hours. Thanks.
Therefore another one.
I am used to programs (such as STATA) where observations with missing values
that are included in a model are simply ignored in the analysis. So far I
have not been able to figure out how to deal with missing values in R and
have solved the problem by deleting observations
2006 Jan 23
3
HABTM: Records with no parents
I have a habtm relationship between two models. What I want to do is
find items that aren''t related. So like if you had authors <->
posts, how would you find authors who don''t have any posts? Or posts
that don''t have an author ?
Thanks,
Alex Strand
[astrand@razorcom.com]
Razorcom
www.razorcom.com
2004 Nov 01
2
Compilation error on mgcv_1.1-7 on OS X (10.3)
Greetings
I run into a compilation error when updating to mgcv_1.1-7 in R 2.0.0 on
OS X 10.3. Note that other pacakges have compiled nicely.
Some details are given below, but in short it looks like it's seeking for
/usr/local/lib/powerpc-apple-darwin6.8/3.4.2/
which I don't have. But I do have
/usr/lib/gcc/darwin/3.3
i.e a lower version of GCC in a different directory. More
2011 Jun 07
1
extract data from a data frame field
Hi all,
I am given the a data frame in which one of the columns has more information
together- see column 4, peak_loc:
chr start end peak_loc cluster_TC strand peak_TC
1 chr1 564620 564649 chr1:564644..564645,+ 94 + 10
2 chr1 565369 565404 chr1:565371..565372,+ 217 + 8
3 chr1 565463 565541 chr1:565480..565481,+ 1214 + 15
4 chr1
2010 Apr 29
1
merged files
Hi,
i have two files (file1.txt and file2.txt) which i would like to merge,
based on certain criteria, i.e.
it combines data based on matching geneID and exons.
i have used the merge option, but it does not give me the desired outcome.
merged.txt shows the result i would like.
*File1. txt*
**
AffyProbe ProbeType Flag GeneSymbol GeneID Exons Chrom Strand Affytart
AffyEnd 1
2010 Feb 25
3
[PATCH 1/3] drm/nv50: Implement ctxprog/state generation.
This removes dependence on external firmware for NV50 generation cards.
If the generated ctxprogs don't work for you for some reason, please
report it.
Signed-off-by: Marcin Ko?cielnicki <koriakin at 0x04.net>
---
drivers/gpu/drm/nouveau/Makefile | 2 +-
drivers/gpu/drm/nouveau/nouveau_drv.h | 1 +
drivers/gpu/drm/nouveau/nv50_graph.c | 74 +-
2011 Apr 21
1
Stymied by plyr
Hello, This is my first time trying to use plyr, and I'm getting
nowhere. I have teacher ratings data (1:4), on 10 components, by
external observers and internal observers, in schools in areas. I want
to calculate the percentage of each rating given on each component, by
each type of observer, within each school, within each area. The data
look like this:
unit area ext.obs rating comp
11
2006 Mar 29
1
IE and Windows Media Player?
Does IE and Windows Media Player (any version) work with Wine 0.9.10 or
the latest CVS version? If so, how to install? I've tried but failed:
* With the latest CVS and sidenet-1.9.1, using option "IE6 with WMP6
installation", the IE setup fails with "The download location information
is damaged".
* With Wine 0.9.10, using the FC4 RPM: The same as above.
* If I try
2003 Apr 07
1
W2003 terminal server profile path error
I've joined a Windows 2003 server to a domain hosted by a Samba 2.2.8
machine. It works fine to log in locally at the console, but not via
terminal services. The login screen says:
"You do not have access to logon to this session."
The Event viewer says:
"Failed to load Terminal Server Profile path. Note that the profile path
must be less than 256 characters in