search for: average

Displaying 20 results from an estimated 6609 matches for "average".

2011 Jan 05
1
List to a summary table
Hi Suppose you have the code below. The result I get from the cat function is from the avgs object. Now, I have 30 diferent objects like this and I wish to make a summary table, something like: Avgs1 Avgs2 Avgs3 i= 2 average= 0.515983i i= 2 average= 0.746983 i= 2 average= 0.2665983 i= 3 average= 0.5135953 i= 3 average= 0.7345953 i= 3 average= 0.23455953 i= 4 average= 0.4998128 i= 4 average= 0.7233128 i= 4 average= 0.21398128 > library(cluster) > d<-hclust...
2012 Mar 07
2
Remove a word from a character vector value XXXX
Hi everyone, What is the easiest way to remove the word Average and strip leading and trailing blanks from the character vector (d5.Region) below? .nrow.d5. d5.Region 1 1 Central Average 2 2 Coastal Average 3 3 East Average 4 4 Metro East Average 5 5 Metro North Average 6...
2010 May 24
5
Means do not tally
...my experiment, I expose 10 subjects to 24 different conditions of stimuli. Each condition is exposed to the same subject 3x. This would make each subject have 24x3=72 data points. All the subjects combined would have 72x10=720 data points with each condition having 30 datapoints. To find the grand average of each condition, I find the average of all the datapoints for a given condition. To find the SD for each condition, if I use the raw dataset (720 datapoints) it would not reflect the SD across subjects. Therefore, I compute the average for each condition per subject .i.e. For subject 1, I would...
2006 May 26
3
Sendmail burst of "rejecting connections" - why?
...erfectly reasonable. As far as I can tell this 14-minute burst of sendmail activity exists in isolation. Can anyone suggest a reason for these log entries? Thanks. ------------------------------------------------- May 25 07:09:24 server sendmail[2942]: rejecting connections on daemon MTA: load average: 24 May 25 07:09:39 server sendmail[2942]: rejecting connections on daemon MTA: load average: 25 May 25 07:09:54 server sendmail[2942]: rejecting connections on daemon MTA: load average: 26 May 25 07:10:09 server sendmail[2942]: rejecting connections on daemon MTA: load average: 29 May 25 07:10:24...
2005 Jun 16
3
Moving average
Good morning all! I am attempting to superimpose a moving-average smoother onto a graph of daily plots. These plots (in table[,2] below) span about 350 days and looks very noisy. I'd like for this smoother to plot the average of each group of 7 consecutive days (weekly) and show a line which joins these series of averages. Given the definition of MA, the f...
2012 Dec 17
3
mean of each month in data
...3 Sa 1957 10 1 2.4 Sa 1958 10 2 2.4 Sa 1958 10 3 2.4 Sa 1958 11 1 2.4 Sa 1958 11 2 2.4 Sa 1958 11 3 2.4 Sa 1958 12 1 2.4 Sa 1958 12 2 2.4 Sa 1958 12 3 2.4 ... ... uptill 69th station i want to convert the data in following format >Ta ## matrix for station Ta 1966 1967 1968 1969 AVERAGE OF MONTH 1 AVERAGE OF MONTH 1 AVERAGE OF MONTH 1 AVERAGE OF MONTH 1 AVERAGE OF MONTH 2 AVERAGE OF MONTH 2 AVERAGE OF MONTH 2 AVERAGE OF MONTH 2 AVERAGE OF MONTH 3 AVERAGE OF MONTH 3 AVERAGE OF MONTH 3 AVERAGE OF MONTH 3 ........ ........ AVERAGE OF MONTH 12 AVERAGE OF MONTH 12 AVERAGE OF MONTH 12 A...
2011 Oct 28
1
About the statistics for ratio comparison
Hi I have a table with four columns and 3 rows. I calculated the average for each columns as average (A), average (B), average (C) and average (D), then calculate the relative ratio as average (A)/average (B), and average (C)/average (D). I would like to know how can I calculate the significance between the two ratios. Thanks, Meng [[alternative HTML version deleted...
2012 Sep 04
1
Producing a SMA signal when closing price is above the moving average for 3 days
I have loaded price data for GE and then calculated a 50 day simple moving average. Then I have a created a ifelse statement that produce a 1 when GE's closing price is above the simple moving average and a 0 when GE Closing price is below the 50 day simple moving average. However, what I really want to do is to produce a 1 for when the price is above the simple moving av...
2015 Nov 23
2
Model averaging en R
Hola a todos, He realizado un dredge (para obtener todos los modelos GAM posibles a parir de un full model), luego he seleccionado un confidence set (los modelos que no se diferencian en 2 en AIC) y he hecho un model averaging con ese confidence set. Ahora me gustaría aplicar ese modelo "average" ajustado sobre otro set de datos pero no se como especificar en R que use el mismo modelo average en otro set de datos. tanto el dredge como el model average lo he realizado con el paquete MuMIn Alguien me puede ayudar? Joan -- *Joan Giménez Verdugo* *PhD Student* *Severo Ochoa* Estació...
2003 Jun 07
3
Bandwidth measurement tool: bmtools
...r seeing what your total usage is between two IAX hosts, or pretty much anything that requires live examination of ethernet segment traffic. http://s-tech.linux-pl.com/bmtools/ [root@ms1 bmtools-0.71]# ./rate -r 1 -f 'host 10.0.1.3 and not port ssh' -> Currently 263.05 Bps/3.01 pps, Average: 263.05 Bps/3.01 pps -> Currently 2706.00 Bps/17.00 pps, Average: 1486.97 Bps/10.02 pps -> Currently 588.00 Bps/6.00 pps, Average: 1186.92 Bps/8.68 pps -> Currently 440.00 Bps/4.00 pps, Average: 1000.00 Bps/7.51 pps -> Currently 440.00 Bps/4.00 pps, Average: 887.91 Bps/6.81 pps -> Cu...
2009 Jul 01
1
Average of data files in a directory
Dear all, I know it is as simple as c <- (a + b)/2 to compute the average (element-wise) of two data vectors. However, I can't work out to compute the average when you have many data vectors in a directory. I have done this: ------------------------------------ setwd("/.../data/") listfiles <- list.files(pattern=".pre") # list all datafiles...
2012 May 10
6
averaging two tables (rows with columns)
Hi R user,I am struggling to figure out on how I can calculate the average from the two tables in R. Any one can help me? really your help would be grateful- I am spending so much time to figure it out. It should not be so hard, I think. I have very big data but I have created a hypothetical data for simplification. for example I have : table 1 table 1: species oc...
2007 Jun 07
1
Averaging across rows & columns
I use Windows, R version 2.4.1. I have a dataset in which columns 1-3 are replicates, 4-6, are replicates, etc. I need to calculate an average for every set of replicates (columns 1-3, 4-6, 7-9, etc.) AND each set of replicates should be averaged every 14 rows (for more detail, to measure fruit color using a spectrometer, I recorded three readings per fruit -replicates- that I need to average to get one reading per fruit; each row is a po...
2006 Aug 03
2
calculating average ratings and other imponderables
...ead if it is: Assume that a smart has_many ratings, and a rating belongs_to a smart (the models are fine). Each rating has a column smart_id. Each smart, then, has many ratings, with a column called "rating" that is an int (1-10). I want to find, say, the ten smarts with the highest average rating. Calculating an average is easy enough--once I know which smart I''m looking at. But how do I find this on the fly? Anyone? Anyone? Bueller? Bueller?
2008 Sep 07
3
Averaging 'blocks' of data
Dear all, I have a large dataset which I hope to reduce in size, to make it more useable. I hope to do this by taking an average of each 60 x 60 blockof values and forming a new data frame out of the averaged values. How would I go about taking averages of 60 x 60 'blocks' in R, and cycling through the whole dataset, recording each calculated value in a new table/data frame? Many thanks for any advice offered. Ste...
2010 Nov 17
3
Parameterising apply To Compute Rolling Average of Columns in a matrix
I sent a post to find a clever way to compute a Rolling Average of columns in a matrix and I was given the solution below which I am very pleased with. RollingAverage <- function(x, RollingObs) { cx <- cumsum(x); N <- length(x); Temp <- (cx[RollingObs:N] - c(0, cx[1:(N-RollingObs)]))/RollingObs Output <- array(NA, N) Output[RollingObs:N]...
2010 Nov 25
3
How to "bin"/average" time points?
...e. I am doing my PhD at The Max Planck Institute of Immunobiology where I am analyzing some calorimetry data from some mice. I have a spreadsheet consisting of measurements of the respiratory exchange rate at different time points measured every 9 minutes over some days. My goal is "bin"/average the time points of each hour to only one measurements. E.g. [Time] - [Measurement] 12.09 - 0.730 12.18 - 0.732 12.27 - 0.743 12.36 - 0.757 12.45 - 0.781 12.54 - 0.731 --> should be averaged to fx one time point and one value, fx: 12.30 - [average of the six measurements] I know how to average...
2018 Aug 02
3
tdbtool repack fails
...repack(tdbtool repack) my "dc=domain,dc=com.ldb" file: tdb> info Size of file/data: 3388084000/1050098055 Header offset/logical size: 0/3388084000 Number of records: 669737 Incompatible hash: no Active/supported feature flags: 0x00000000/0x00000001 Robust mutexes locking: no Smallest/average/largest keys: 12/57/242 Smallest/average/largest data: 72/1510/1235987 Smallest/average/largest padding: 5/412/252927 Number of dead records: 2 Smallest/average/largest dead records: 399912712/661866360/923820008 Number of free records: 38999 Smallest/average/largest free records: 12/18485/71517072...
2011 May 05
6
Averaging uneven measurements by time with uneven numbers of measurements
I have a new device that takes measurements anywhere from every second, to every 15 minutes (depending on changes). The matrix has a date, time and Y column (Y is the measurement). For three days it is 25,000 rows. How do I average the measurements by every 30 minutes so my matrix is 48 rows per day? I have been working on this and cannot figure out a simple method. Any ideas? Thank you. ----- In theory, practice and theory are the same. In practice, they are not - Albert Einstein -- View this message in context: http://r.78...
2011 May 26
4
Samba performance
...NIC ports with 802.3ad bonding connected to a switch configured tu use 802.3ad - 8 2TB 7.2 krpm SATA disks with hardware RAID5 (RAID stripe size 1024 bytes, controller and disk cache enabled, readahead enabled) - XFS filesystem (created with the following parameters: size=64k -d su=1024k,sw=7) - Average file size in the share: 8 MByte - Gigabit network composed by Cat5E certified cabling and DLink DGS-3427 gigabit switch. - Intel I7 based terminals with Intel gigabit NIC, running Windows 7 Test results: OS access: Sequential write (1 x 31 GByte file): 500 MByte/s Sequential read (1 x 31 GByt...