Displaying 20 results from an estimated 7000 matches similar to: "Collapsing a factor in R"
2010 Mar 26
4
Competing with SPSS and SAS: improving code that loops through rows (data manipulation)
Dear R-ers,
In my question there are no statistics involved - it's all about data
manipulation in R.
I am trying to write a code that should replace what's currently being
done in SAS and SPSS. Or, at least, I am trying to show to my
colleagues R is not much worse than SAS/SPSS for the task at hand.
I've written a code that works but it's too slow. Probably because
it's
2008 May 28
1
superposing barplots having different scales
Hello. I know how to make a bar plot in which a numeric y variable is
plotted against some grouping variable X (say, groups A, B, C) when this
grouping variable is subdivided into each of two subgroups; so the bars
would be: (group A subgroup 1) beside (group A subgroup 2), then (group B
subgroup 1) beside (group B subgroup 2), and so on. This is done using the
beside=TRUE argument in the
2015 May 27
4
[Bug 2302] with DH-GEX, ssh (and sshd) should not fall back to unconfigured DH groups or at least document this behaviour and use a stronger group
On Wed, May 27, 2015 at 05:08:25PM -0400, Daniel Kahn Gillmor wrote:
> On Tue 2015-05-26 15:39:49 -0400, Mark D. Baushke wrote:
> > Hi Folks,
> >
> > The generator value of 5 does not lead to a q-ordered subgroup which
> > is needed to pass tests in
> >
> > http://csrc.nist.gov/publications/nistpubs/800-56A/SP800-56A_Revision1_Mar08-2007.pdf
> 
> I
2002 Jun 07
2
Hope fo help - functions, fits and for cycles
I need a little piece of advice concerning passing data frames 
into the functions. As I do a lot of similar fits at a time, I'd like to 
write a small function doing the fits for all relevant variables 
automatically. However, I usually get error messages of the 
following kind:
  	(I present here a part of a test code).
#####################################################
# Data set:
2009 Mar 10
2
perform subgroup meta-analysis and create forest plot displaying subgroups
Hello, 
I'm using the rmeta package to perform a meta analysis using summary statistics rather than raw data, and would like to analyze the effects in three different subgroups of my data. Furthermore, I'd like to plot this on one forest plot, with corresponding summary weighted averages of the effects displayed beneath each subgroup.
I am able to generate the subgroup analyses by simply
2006 Jan 24
4
How to filter an activerecord find_all...
I have a nice hierarchical table structure like this:
divisions
has_many groups
groups
belongs_to division
has_many subgroups
subgroups
belongs_to group
has_many units
units
belongs_to subgroup
I have a report which is based on units, but i want to be able to filter 
the units by which subgroup, or which group, or which division. I also 
want to sort them by division.name,then group.name,
2011 Apr 01
3
programming: telling a function where to look for the entered variables
Hi there,
Could someone help me with the following programming problem..?
I have written a function that works for my intended purpose, but it
is quite closely tied to a particular dataframe and the names of the
variables in this dataframe. However, I'd like to use the same
function for different dataframes and variables. My problem is that
I'm not quite sure how to tell my function in
2015 Jun 12
2
[Bug 2302] with DH-GEX, ssh (and sshd) should not fall back to unconfigured DH groups or at least document this behaviour and use a stronger group
On Fri 2015-06-12 01:52:54 -0400, Mark D. Baushke wrote:
> I have communicated with Allen Roginsky on this topic and I have been given permission to post his response.
>
> In this message below, the 'vendor' was Darren Tucker's generated prime
> that used a generator value of 5.
>
> 	-- Mark
>
> From: "Roginsky, Allen" <allen.roginsky at
2009 Apr 29
2
if condition doesn't evaluate to True/False
Hi friends,
Please help me with this bug.
*Bug in my code:*
In this variable sub_grp_whr_cls_data[sbgrp_no,1] I store the where
clause.every sub group has a where condition linked with it.
Database1
Where clause  was  not found for a particular subgroup,
sub_grp_whr_cls_data[sbgrp_no,1]  value was NULL
So the condition (*sub_grp_whr_cls_data[sbgrp_no,1]=="NULL" ||
2007 Jul 12
2
Metadata additions
With this mail I would like to make a proposal to add additional informations 
to the core and plugin metadata files. Currently these tags are already 
handled in the ccs configuration system. Ccs  automatically adds this 
informations to the core/plugin option set, but I think that it would make 
more sense to add this to the official files, to allow similar features in 
other configuration
2008 Aug 28
2
tree structure in rails?
Hi,
 Is there is any way in ruby on rails where we show all my groups there
subgroups
  with check boxes in tree structure way?
    e.g
         group A
            |
            ----Group A.1
            |
             ----Group A.2
                     |
                     ---------Group A.2.1
 All with check boxes  and subgroup opens when click on root ?
-- 
Posted via
2010 Jul 20
1
define subgroups based on position in table
Dear list,
 
I have a data frame with one column (group) and want to add a second column (sub) with a serial number that says to which subgroup a cell belongs. A subgroup contains the consecutive rows of the same group. The number of a subgroup is based on its position in the table. The first subgroup of A's and B's should have nr A1 and B1, the second nr A2 and B2, etc.. I hope the
2009 Mar 25
2
"with" and "by" and NA:
Hi,
I have a data.frame with many variables for which I am performing the 
mean by subgroup, for a pair of variables at a time, where one of them 
for each pair defines the subgroup. The subgroups in the x$cm1 are 0, 1 
and 2.
x
ph1 cm1
0.2345 2
1.2222 1
2.0033 0
0.0000 2
1.0033 1
0.2345 0
1.2222 2
2.0033 0
0.0000 1
1.0033 2
 > meanbygroup <- as.vector(with(x, by(x$ph1, x$cm1, mean)))
2004 May 03
1
Setting up contrasts
I am using the following model:
lm <- lm(mydata[[variableName]] ~ Age + Gender + Group, data=mydata)
There are 5 groups in "Group": nonc (the control), c1,c2,c3 and c4.
How do I contrast nonc vs the others?
and
How do I contrast c1 vs other c's (ie c2,c3,c4 as a subgroup)?
I have looked at the contrasts option in lm and model.matrix and am
really none the wiser.
Though it
2003 May 25
2
assign() won't work
Hey everyone, I've been searching the mail lists, and I can't find a real discussion about my problem.  Here it is:
I have created a loop fitting various time series models to my data.  I labeled each one of the outputs by using the assign and paste statements, i.e. assign(paste("group","subgroup",i),arima(...)).  Works great, but here's what I need...
I want to
2015 May 27
3
Weak DH primes and openssh
On Wed 2015-05-27 05:23:41 -0400, Hubert Kario wrote:
> On Tuesday 26 May 2015 15:10:01 Daniel Kahn Gillmor wrote:
>> On Tue 2015-05-26 14:02:07 -0400, Hubert Kario wrote:
>> > OEIS A014233
>> 
>> Hm, this is a sequence, but not an algorithm.  It looks to me like it is
>> not exhaustive, just a list of those integers which are known to have
>> the stated
2012 Jul 13
2
Creating Subgroups in Puppet Dashboard
Hi All,
 
Is there a feasibility for creating subgroups on the Puppet Dashboard? 
Basically the requirement is that we have a huge number of VMs running 
designated services. Some of VMs having the same service may yet have 
different properties configured on them. We are exploring the feasibility 
of having these properties managed through puppet. Currently all these VMs 
are put into a single
2012 May 05
3
metafor
Dear users of metafor,
I am working on a meta-analysis using the metafor package. I have a
excel csv database that I am working with. I am interested in pooling
the effect measures for a particular subgroup (European women) in this
csv database. I am conducting both sub-group and meta-regression.
In subgroup-analyses, I have stratified the database to create a
separate csv file just for European
2005 May 04
4
selections of data by one variable
Dear R experts,
My problem is as follows:
Suppose I have a data frame d comprising two variable a<-c(1:10) & 
b<-c(11:20).
I now want to select a subgroup according the values of b.
I know if I just want to select, say, b=17, I can use f<-d[d$b==17] and R 
will give me 
> f
  a  b
7 7 17
However, if now I want to select a subgroup according to b==e<-c(13,15,17), 
then the
2012 Mar 29
3
How to get the most frequent value of the subgroup
Dear Members of the R-Help,
While using a R function - 'aggregate' that you developed, I become to have a question.
In that function,
> aggregate(x, by, FUN, ..., simplify = TRUE)
I was wondering about what type of FUN I should write if I want to get "the most frequent value of the subgroup" as a summary statistics of the subgroups.
I will appreciate if I can get