search for: vara

Displaying 20 results from an estimated 46 matches for "vara".

Did you mean: var
2011 Sep 12
2
Automated generation of combinations
Hello,   I'd like to generate automatically all the possible combinations of a set of 8 variables (there are 535, too many to do it by hand). For example:   input: varA, varB, varC output: varA+varB+varC             varA+varB             varA+varC             varB+varC             varA             varB             varC Is there any function that produces this option?   Thank you [[alternative HTML version deleted]]
2007 Dec 07
5
Grouping by interval
Hello, I have a dataframe of say 20 lines with one line per individual. I want to group these 20 individuals by length class (eg. of 5cm) and get the mean value of all the other variables (eg VarA and VarB) for each length class My dataframe is as follow: Length <- 10:30 VarA <- seq(1000,1200,10) VarB <- seq(500,700,10) Data <- cbind(Length,VarA,VarB) And I want to get something like: Length Class Mean VarA Mean VarB [10-15[ 1020 520...
2008 Mar 16
2
How to loop through all the columns in dataframe
...c(2.2024,2.4216,1.4672,1.4817,1.4957,1.4431,1.5676) pd<- c(0.017046,0.018504,0.012157,0.012253,0.012348,0.011997,0.012825) td<- c(160524,163565,143973,111956,89677,95269,81558) mydf<-data.frame(xd,pd,td) trans<-t(mydf) trans I have these values that I need to include while looping: varA<- 0.0000036084 covAB<- (-0.0000013046) varB<- 0.00000052628 After transposing my dataframe I need something like the following: varA + col1*covAB + col2*covAB + col1*col2*varB varA + col1*covAB + col3*covAB + col1*col3*varB varA + col1*covAB + col4*covAB + col1*col4*varB varA + c...
2011 Aug 03
1
Coefficient names when using lm() with contrasts
Dear R Users, Am using lm() with contrasts as below. If I skip the contrasts() statement, I get the coefficient names to be > names(results$coef) [1] "(Intercept)" "VarAcat" "VarArat" "VarB" which are much more meaningful than ones based on integers. Can anyone tell me how to get R to keep the coefficient names based on the factor levels whilst using contrasts rather than labelling them with integers? Many thanks in advance,...
2018 Apr 28
2
mp3 stream and Chrome v.65.0.33.25.181
...n into problems. Stream will play couple of minutes and then stop. Is there something fundamentally wrong with my configuration in vlm configuration: output #transcode{acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=shout{mp3=1,bitrate=128},mux=mpeg1,dst=source:hacme at 185.139.168.34:8000/vara},dst=std{access=shout{mp3=1,bitrate=128},mux=mpeg1,dst=source:hacme at 185.139.168.36:8000/vara}} http://185.139.168.34:8000/vara http://185.139.168.36:8000/vara Yours,, Oskar Vilkevuori
2005 Dec 13
1
Manipulating matrices
Hi, I'm pretty new to R and I've been having some problems filtering data in matrices. I have the following initial dataset: || year | name | varA || I have multiple values for "varA" for the same "year" and the same "name". Having this as the input I would like to obtain the following: || year | name | {varA mean} || Where I only have one line for each "year" and "name" with the mean of th...
2007 Nov 07
2
creating a dynamic output vector
Let's say I have a program that returns variables whose names may be any string within the vector NAMES=c("varA","varB","varC","varD","varE","varF"..."varZ"), but I do not ever know which ones have actually been created. So in one example output, "varA", "varC", and "varD" could exist, but in another example out...
2012 Jan 01
1
How to pass in a list of variables as an argument to a function?
...at these functions accept, however R interprets them as a string, not as individual arguments. Thanks in advance, Randall ################################################################# # libraries used library(reshape) # create some data similar to use case myData = data.frame(expand.grid(varA=c("a", "b", "c"), varB=c("d", "e", "f"), varC=c("g", "h", "i"), varD=c("old", "new")), n=1000, fail=rbinom(2700,1000, 0.01)) # add in one more column myData$pass = myData$n-myData$fail #...
2011 May 05
3
cross-correlation table with subscript or superscript to indicate significant differences
Hi, I wonder whether the following is possible with R, and whether anyone has done that and can share his/her code with me. I have a correlation matrix, and I want to create a correlation table that I can copy to Microsoft Word with a superscript above each correlation, indicating significant differences in the same row. That is, when correlations in the same row do not share superscript, it means
2004 Nov 01
1
plot time series / dates (basic)
...n the two graphs printed pair by pair is fairly large. Can I remove/reduce the area that seems reserved for Title and X label so that, on a page, the space between the graph at the top and the one at the bottom is minimized? 3. Given the function below, I haven't discovered a way to have "vara" appear as the Title or Y label in graphs. main=as.character(vara) lists all the values of vara (which is a column from the data frame d). So, how can I use the name of a vector as title or label in a plot? Thank you, b. d <- ('data.csv', header = T, sep = ",", quote=&q...
2018 Apr 28
1
mp3 stream and Chrome v.65.0.33.25.181
...uple of minutes and then stop. >> >> Is there something fundamentally wrong with my configuration in vlm configuration: >> >> output #transcode{acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=shout{mp3=1,bitrate=128},mux=mpeg1,dst=source:hacme at 185.139.168.34:8000/vara},dst=std{access=shout{mp3=1,bitrate=128},mux=mpeg1,dst=source:hacme at 185.139.168.36:8000/vara}} >> >> http://185.139.168.34:8000/vara >> >> http://185.139.168.36:8000/vara >> >> Yours,, >> >> Oskar Vilkevuori > Hi, > > Wow, VLC 0.9.9 i...
2009 Jul 22
1
How do I delete a row from a data frame when varA == "TRUE"
...SE") XYZ<-XYZ else XYZ<- XYZ[-i,] Error message is: Error in if (XYZ$A == "FALSE") XYZ<-XYZ else XYZ<- XYZ[-i, : missing value where TRUE/FALSE needed Please help!! -- View this message in context: http://www.nabble.com/How-do-I-delete-a-row-from-a-data-frame-when-varA-%3D%3D-%22TRUE%22-tp24599876p24599876.html Sent from the R help mailing list archive at Nabble.com.
2013 Jan 25
1
Recoding variables (without recode() )
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130125/859c4520/attachment.pl>
2007 Feb 20
1
Difficulties with dataframe filter using elements from an array created using a for loop or seq()
...The third vector is made using seq() seqvector <- seq(0.05, 0.95, 0.10) ## Are the vectors the same? all.equal(loopvector, handmadevector) all.equal(loopvector, seqvector) print(handmadevector) print(loopvector) print(seqvector) ## As a simple testcase, I create a dataframe with two variables, a varA of dummy data, and bBins ## which is the column on which I was trying to filter. a <- c(0,1,2,0,1,3,4,5,3,5) b <- c(0.05,0.15,0.25,0.35,0.45,0.55,0.65,0.75,0.85,0.95) testdf <- data.frame(varA = a, bBins = b) attach(testdf) ## Loop through each of the vectors, create a filter on the datafr...
2004 Dec 21
3
R code for var-cov matrix given variances and correlations
Dear list members, Where can I find code for computing the p*p variance-covariance matrix given a vector of p variances (ordered varA, varB, ..., varp) and a vector of all possible correlations (ordered corAB, corAC, ..., corp-1,p)? I know that the covariance between 2 variables is equal to the product of their correlation and their standard deviations: corAB * varA^.5 * varB^.5 and so: covAB <- function(corAB, varA, varB...
2010 Jun 10
1
coxph and completely missing strata/subsetting
...everyone, I'm doing some coxph() analyses with a large and complex dataset. The data was collected in different centers, so I am using strata(centers) to stratify the analysis. My main issue is, not all centers collected all the variables, so for a model such as: coxph(Surv(days, cancer) ~ varA + sex + strata(centers), data) I might have 1 or more centers that have NA for varA (in practice, all the individuals monitored at those centers come without varA). coxph() obviously warns me that a number of individuals have been excluded -- would that be equivalent to doing the analysis on a su...
2007 Mar 16
1
multiple scores per subject
Hi, I have a data set that looks like this: > data vara varb S PC 1 None 250 1 80 2 None 250 1 70 3 Some 250 1 60 4 Some 250 1 70 5 None 1000 1 90 6 None 1000 1 90 7 Some 1000 1 80 8 Some 1000 1 70 9 None 250 2 100 10 None 250 2 80 11 Some 250 2 70 12 Some 250 2 70 13 None 1000 2 100 14 None 1000 2 90 15 Some 1000 2 50 16...
2012 Jul 18
1
fitting several lme sistematically
Dear R-list, I have a data set (in the following example called "a") which have: one "subject indicator" variable (called "id") three dependent variables (varD, varE, var F) three independent variables (varA, varB, varC) I want to fit 9 lme models, one per posible combination (DA, DB, DC, EA, EB, EC, FA, FB, FC). In stead of writting the 9 lme models, I want to do it sistematically (the example is a simplification of what I really have). Here you have the comands for the first model: library(nlme)...
2006 Aug 15
3
merge 2 data frame based on more than 2 variables
Dear Lister, I understand merge() can be used to join 2 data frames based on 1 variable. But how about merge based on more than 2 variables? Thank you so much! -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Health Policy and Clinical Effectiveness Cincinnati Children Hospital Medical Center [[alternative HTML version deleted]]
2019 Sep 26
5
[PATCH] vsock/virtio: add support for MSG_PEEK
This patch adds support for MSG_PEEK. In such a case, packets are not removed from the rx_queue and credit updates are not sent. Signed-off-by: Matias Ezequiel Vara Larsen <matiasevara at gmail.com> --- net/vmw_vsock/virtio_transport_common.c | 50 +++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c index 94cc0fa..938f2ed 100644...