search for: subgroup

Displaying 20 results from an estimated 298 matches for "subgroup".

2010 Mar 26
4
Competing with SPSS and SAS: improving code that loops through rows (data manipulation)
...################################ set.seed(123) data<-data.frame(group=c(rep("first",10),rep("second",10)),week=c(1:10,1:10),a=abs(round(rnorm(20)*10,0)), b=abs(round(rnorm(20)*100,0))) data dim(data)[1] # !!! In real life I might have up to 150 (!) rows (weeks) within each subgroup ### Specifying parameters used in the code below: vars<-names(data)[3:4] # names of variables to be transformed nr.vars<-length(vars) # number of variables to be transformed; !!! in real life I'll have to deal with up to 50-60 variables, not 2. group.var<-names(data)[1] # name of the...
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 performing 3 separate meta-analyses with the desired subset of data. However, I...
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 barplot() function. However, I want to make a slightly different type of barplot in which the numerical val...
2012 Jan 20
3
error
Unable to resolve error in seq.default(which(text == "")[1] + 1, length(text), 1): wrong sign in 'by' argument I am trying to run this code get.msg <- function(path) { con <- file(path, open = "rt", encoding = "latin1") text <- readLines(con) # The message always begins after the first full line break msg <- text[seq(which(text ==
2011 Oct 10
1
Multiple imputation on subgroups
Dear R-users, I want to multiple impute missing scores, but only for a few subgroups in my data (variable 'subgroups': only impute for subgroups 2 and 3). Does anyone knows how to do this in MICE? This is my script for the multiple imputation: imp <- mice(data, m=20, predictorMatrix=pred, post=post, method=c("", "", "", "", &q...
2012 Mar 09
0
pdMat class in LME to mimic SAS proc mixed group option? Group-specific random slopes
...pendent. It seems as thought the pdMat options in lme are a promising avenue. However, none of the existing pdMat classes seem to allow what I want. As a specific example, I would like to fit a random intercept/slope mixed model to longitudinal observations in which the subjects are divided into 5 subgroups. There is good reason to suspect that the intercept/slope variance will be heteroscedastic among the 5 subgroups (as well as the residual R-side variances). If I'm willing to assume that each subject's random slope and intercepts is independent (a dangerous assumption), then I can get clo...
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, then subgroup.name. What'...
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 http:...
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 pulled revision 2 of this document from here: > > https://dx.doi.org/10.6028/nist.sp.800-56ar2 > > The "FFC Domain Par...
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
...39;s generated prime > that used a generator value of 5. > > -- Mark > > From: "Roginsky, Allen" <allen.roginsky at nist.gov> > Subject: RE: Question on SP 800-56A rev2 > > The reason the y^q=1 (mod p) tests exists is to verify that y is in the > required subgroup. I think this answer "begs the question" -- yes, the mathematical test verifies that y generates a subgroup of size q. But the question we were discussing is why does the subgroup need to be of size q instead of size p-1? --dkg
2011 Apr 01
3
programming: telling a function where to look for the entered variables
...table is created (in my actual data, several other operations are then performed on that contingency table, but these are not relevant for the problem in question, therefore I've deleted it) . # function as it currently works: tailored to a particular dataframe (Fulldf) myfunct <- function(subgroup){ # enter a particular subgroup for which the contingency table should be calculated (i.e. a particular value of the factor lvar) Data.tmp <- subset(Fulldf, lvar==subgroup, select=c("xvar","yvar")) #restrict dataframe to given subgroup and two columns of the original datafram...
2012 Mar 29
3
How to get the most frequent value of the subgroup
...bers 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 your idea on this issue. Many thanks, Jason Jung. [[alternative HTML version deleted]]
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. Cur...
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 women from the original database and conducted the following: women_west<-read.csv("women_west.cs...
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 example below makes things more clear. This is wh...
2011 Jul 27
1
how to replace values in x by means in subgroups created in ... (not loops)
# Dear all, # how to replace values in x by means in subgroups created in ... # replace only these values where y=0 in continous sequence # replace by mean calculated locally for each subgroup created by # continous sequence of 0,0,0 in parallel y vector, i.e. # where there is continous sequence of 0 in data frame vector y # but we do not replace values...
2009 Nov 29
3
How to z-standardize for subgroups?
...1-3 (actually - there are many more) by class, so I define z.mean.sd <- function(data){ return.values <- (data - mean(data)) / (sd(data)) return(return.values) } now I can call for each var z.var1 <- by(df.vars$var1, group, z.mean.sd) which gives me the standardised data for each subgroup in a list with the subgroups z.var1 <- unlist(z.var1) then gives me the z-standardised data for var1 in one vector. Great! Now I would like to do this for the whole dataframe, but probably I am not thinking vectorwise enough. z.df.vars <- by(df.vars, group, z.mean.sd) does not work....
2007 Jan 25
0
Subgroup discovery in R
I would very much like to apply "subgroup discovery" techniques to some of the data I am analyzing at this moment. Subgroup discovery is an interesting approach and is quite well known in the Data Mining community, though in essence it is a purely statistical approach. To read an introductory article see "Subgroup discovery and...
2007 Jun 27
3
exaustive subgrouping or combination
Dear Colleagues, I am looking for a package or previous implemented R to subgroup and exaustively divide a vector of squence into 2 groups. For example: 1, 2, 3, 4 I want to have a group of 1, (2,3,4) (1,2), (3,4) (1,3), (2,4) (1,4), (2,3) (1,2,3), 4 (2,3), (1,4) ... Can someone help me as how to implement this? I get some imaginary problem when the sequence becomes large....
2009 Mar 25
1
boxplot in subgroups
...plots for a given ASA1 (either C,S, or M) with respect to C1_C2. However, instead of one boxplot I want to plot three boxplots for a given ASA1 value such that each sub-boxplot represent the distribution for C1-C2 for each of the three possible values of ASA2 (C,S or M). I want to show this subgroup with a single xtics (either C, S or M) corresponding to the ASA1 value selected. I tried to do it, but ending with the following error. I am not sure how exactly I should build the object to plot as subgroup. Error in axis(side = 1, at = 1:9, labels = c("C", "M", "S&...