search for: ratio

Displaying 20 results from an estimated 3140 matches for "ratio".

2015 May 10
3
Packet compression benchmark
...he benchmark with two different packet sizes; 1451 (which is the usual payload size of VPN packets that tinc sents on MTU 1500 paths) and 8951 (the equivalent if you enable jumbograms and your network supports it, not likely over the Internet). Both the speed (higher is better) and the compression ratio (lower is better) are benchmarked. The speed is measured for both compressing and decompressing the data. If you are CPU bound and have a high bandwidth network, then this is what you are interested in. If on the other hand you are bandwidth limited, then the compression ratio is what is most impor...
2006 Aug 28
1
Not compressing 24 bit very well
...ecasound). I'll poke around in the FLAC code a bit to see if I can find anything, but I thought I'd post here to see if anyone has a better idea of what might be wrong. Best regards, Josh Green 24 bit options: -P 4096 -b 4608 -m -l 8 -q 0 -r 3,3 Bees1_clip01.wav: wrote 243159 bytes, ratio=0.945 Bees1_clip02.wav: wrote 319382 bytes, ratio=0.782 Bees2_clip01.wav: wrote 535266 bytes, ratio=1.007 Bees3_clip01.wav: wrote 538943 bytes, ratio=0.805 Bees3_clip02.wav: wrote 356050 bytes, ratio=0.865 Bees3_clip03.wav: wrote 202738 bytes, ratio=0.758 Bees3_clip04.wav: wrote 180798 bytes, ratio...
2011 Oct 13
3
Question about GAMs
hi! I hope all of you can help me this question for example GAMs: ozonea<-gam(newozone~ pressure+maxtemp+s(avetemp,bs="cr")+s(ratio,bs="cr"),family=gaussian (link=log),groupA,methods=REML) formula(ozonea) newozone ~ pressure + maxtemp + s(avetemp, bs = "cr") + s(ratio,bs = "cr") #formula of gams coef(ozonea) # extract the coefficient of GAMs (Intercept) pressure maxtemp s(avetemp).1 s(...
2013 Feb 28
3
Hidden information in an object
Hello, The dataset "cats" contain information about the heart weight ("Hwt"), body weight ("Bwt") and gender ("Sex") of a group of 144 cats. I write the following piece of code: library(MASS)attach(cats)ratio <- Hwt/Bwtmale <- ratio[Sex == "M"]female <- ratio[Sex == "F"] My question is, when I look at the object "ratio", it is just a list of 144 numbers with no information about the gender of the cat that the ratio comes from, and yet the command "ratio[Sex ==...
2003 Sep 03
0
Updated power.t.test
...and sample variances in the case of a two-sample t test. I'd gladly update the corresponding help page if the code is to replace the current power.t.test function. The modified power.t.test code is included below. The changes are as follows: - Added three new arguments to the function * ratio : the ratio between group sizes (defaults to 1) * sd.ratio : the ratio between group sd's (defaults to 1) * df.method : the method used to calculate the df (defaults to Welch's/Satterthwaite as in the t.test function) The three new arguments are unly used for the unpaired two-sa...
2013 May 11
1
prediction in a loop with only one sample
...takes 300 of these observations for the prediction and the rest to estimate the model. My idea was to create something like this: cs.training.dat <- read.table... cs.training.dat_sub1 <- subset(cs.training.dat, Income>10) cs.training.dat_sub2 <- subset(cs.training.dat_sub1, Dept.Ratio<=1) cs.training.dat_sub3 <- subset(cs.training.dat_sub2, Credit.Limit.Ratio<=1) for (i in 1:500){ y.2 <- cs.training.dat_sub3$y[1+[i]:300+[i]] y.1 <- cs.training.dat_sub3$y[-(1+[i]:300+[i])] NTimes.60DaysLate.2 <- (cs.training.dat_sub3$NTimes.60DaysLate[1+[i]:300+[i]]) NTimes.60D...
2011 May 23
2
Passing function arguments to dataset names
...ocedure and was wondering if anybody knows the answer. I am a relatively new R user. How do I use an argument of a custom function in the name of a dataset in R? For example, I have the function: MyF <- function(Tic, price){ xxxxx xxxxx xxxxx Ratio.Tic<- SharpeRatio.annualized(roc) } I would like to have a dataset that's labelled Ratio.MSFT, Ratio.XOM, Ratio.IBM...etc. The objective is to append multiple Ratio.Tic datasets that contains all the ratios in one single data. Thanks in for your time! Mateo -- View this message in context...
2007 Jun 28
0
Branch 'as' - 4 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/image
libswfdec/swfdec_debugger.c | 4 - libswfdec/swfdec_movie.c | 8 +- libswfdec/swfdec_movie.h | 2 libswfdec/swfdec_sprite_movie.c | 2 test/image/Makefile.am | 3 test/image/placeobject-ratio.swf |binary test/image/placeobject-ratio.swf.png |binary test/image/placeobject-ratio.xml | 137 +++++++++++++++++++++++++++++++++++ 8 files changed, 148 insertions(+), 8 deletions(-) New commits: diff-tree c7622a13456a723bef13fd0a1b80a4060758af70 (from 0fcbb5ec49536a791f197016ebdcffbcc...
2008 Mar 30
1
Plot for jump point
Hi, My code is as the following, ratio<-seq(0,1,by=0.01) payoff<-NULL for (i in 1:length(ratio) ) { payoff1<-100*(ratio[i]>=0.7)+max(100*(1+(ratio[i]-1)*2),0)*(ratio[i]<0.7) payoff<-c(payoff,payoff1) } plot(ratio,payoff, xlab='ST/S0', ylab='Payoff',type='l') I have the discontinuous point at ra...
2004 Jul 14
4
aspect ratio ?
Can someone enlighten me on what the status is of aspect ratio in theora is ? The ti structure has aspect_num and _den values, which I assume give the intended display aspect ratio (e.g. 4/3). The sample files on the bittorrent seem to say both values are 0 for all files. I'd think it should at least be made impossible to have a 0 as the denominator. T...
2007 Dec 18
1
hazard ratio of interaction Cox model
Dear Forum, I have a question about interaction estimate in the Cox model: why the hazard ratio of the interaction is not produced in the summary of the model? (Instead, the estimate of the coefficient is given in the print of the model.) # Example: modINT <-cph( Surv(T_BASE, T_FIN,STATUS)~ NYHA + ASINI + RFP + FE_REC + XX_PR*XX_DISF) print(modINT) coef se(coef)...
2011 Apr 30
0
bootcov or robcov for odds ratio?
...a logistic regression model (MyModel) using lrm and penalization by pentrace for data of 104 patients, which consists of 5 explanatory variables and one binary outcome (poor/good). Then, I found bootcov and robcov function in rms package for calculation of confidence range of coefficients and odds ratio by bootstrap covariance matrix and Huber-White sandwich method, respectively. > MyModel.boot <- bootcov(MyModel, B=1000, coef.reps=T) > MyModel.robcov <- robcov(MyModel) > anova(MyModel) Wald Statistics Response: outcome Factor Chi-Square d.f. P s...
2013 Jun 14
2
significance testing for the difference in the ratio of means
I have a question regarding significance testing for the difference in the ratio of means. The data consists of a control and a test group, each with and without treatment. I am interested in testing if the treatment has a significantly different effect (say, in terms of fold-activation) on the test group compared to the control. The form of the data with arbitrary n and not...
2009 Oct 15
4
PSTN to SIP line ratio
Hi, I am planning to deploy an Asterisk PBX for 100-200 users. I am not sure about PSTN incoming/outgoing line ratio for SIP users. I mean if you recall dial up internet the common line ratio is 1:10 (one line for 10 users on access server or an E1 for 300 users). Can somebody tell me what is the good ratio for incoming and outgoing analogue/ digital PSTN lines. Regards Smir
2007 Jan 03
1
mcmcsamp and variance ratios
Hi folks, I have assumed that ratios of variance components (Fst and Qst in population genetics) could be estimated using the output of mcmcsamp (the series on mcmc sample estimates of variance components). What I have started to do is to use the matrix output that included the log(variances), exponentiate, calculate the relev...
2012 Jun 20
2
Odds Ratios in rms package
Hi, I'm using the rms package to do regression analysis using the lrm function. Retrieving odds ratios is possible using summary.rms. However, I could not find any information on how exactly the odds ratios for continuous variables are calculated. It doesn't appear to be the odds ratio at 1 unit increase, because the output of summary.rms did not match the coefficient's value. E.g. print g...
2007 Nov 06
1
Problem with a non-factor, non-numeric variable in a data.frame
Dear R list, I would like to perform an ANOVA in a set of measurements, but I have problems formatting the data. The data is a two dimensional array containing two columns: - "Stim" : the type of stimulation (string) - "Ratio" : a ratio of two numeric values Now, because some values are missing in the data (defaulting to zero), part of this array will be populated with NA ratios. Maybe this is important later. In order to make the ANOVA analysis, I need to turn my vector into a data.frame. I tried vector.table=a...
2010 Mar 09
1
Obtaining the true aspect ratio for a lattice plot
I almost always supply my own aspect ratio when plotting using lattice. When I plot these to pdf, I would like to specify pdf dimensions that will result in minimal margins around the plot. In my application, resorting to a pdf cropper after plotting is not an option - I must do it in R. The problem is that I cannot determine t...
2007 Mar 25
1
controlling panel.width and panel.height in viewports
...ut struggling to exert fine control over their appearence. There are two conditions: (a) I only want the levelplot to appear (I don't want axes, colour key, etc) in the viewport and (b) I want the levelplot to expand to the maximum allowable space in the viewport while observing the aspect ratio of the plot. Condition (a) is OK, but (b) is giving me trouble. A toy example is: library(lattice) library(grid) x <- 1:10 y <- 1:10 grid <- expand.grid(x=x, y=y) grid$z <- grid$x*grid$y asp.ratio.1 <- 2 asp.ratio.2 <- .5 asp.ratio.3 <- 1 test.1 <- levelplot(z~x*y, gri...
2006 Jun 26
2
compare odds ratios
Hi there, is there any way to compare 2 odds ratios? I have two tests that are supposed to detect a disease presence. So for each test, I can compute an odds ratio. My problem is how can I compare the 2 tests by testing whether the 2 odds ratios are the same? Appreciate