search for: observation

Displaying 20 results from an estimated 14466 matches for "observation".

Did you mean: observations
2010 Sep 09
0
Plotting dates and grid lines on the X-Axis of xyplot
I have a plotting function that is plots a multi-panel plot, with the x-axis as a date and various y-axes. I would like to control the frequency of the X-axis labels, ticks and grid lines. However with the following code I get no annotation on the X-axis at all. Here is a minimal data.frame Case Days Well Stream Value 1 Observed 0 P-1 Oil 1000.807785 2 Observed 31
2001 Apr 15
2
data manipulation in R
..._1,2,3_, observer _b_ sees events _2,4,5_, observer _c_ sees event _4_, and observer _d_ sees _4,6,7_. Observers a, b, c, d comprise a circuit linked by the events they jointly observed. Given AxB, how can we use R to articulate the circuits? Pseudocode for my SQL solution is below. For each observation i: - get all the events [j1,j2,...jk] observed by i - get all the observations [i_m] which observe one or more events in [j1,j2,...jk] - count [i_m] - assign events [i_m] to i's circuit if i_m > i - end What would an R solution look like? The "get all the" and the &quot...
2006 Mar 10
9
Observers?
...w_mil_indication? > UserMailer.deliver_mil_notice(vehicle) > end > end > end > > VehicleObserver.instance It seems from reading AWDR that the last line may not be necessary for Rails apps, though it appears that if it isn''t there you can only specify when observations take place via the observer command in Controllers. I want to observe ALL saves to Vehicle, not just ones generated via a controller. In fact, the vast majority of saves to Vehicle happen in a background process outside the web application. My problem is that observations aren''t ta...
2006 Jul 18
7
Observer not working
Help please. I''m trying to observe a User class, but I can''t get this to work, the after_create method never gets called... (the breakpoint never gets called) app/models/user_observer.rb: class UserObserver < ActiveRecord::Observer def after_create(user) breakpoint setting =
2007 Sep 07
5
SQL like function?
Hi RUsers, I am wonder if I can search observations whose IDs matches any of the values in another vector, such as in MySQL. While I am learing MySQL for future database management, I appreciate if anyone could give me a hint. Suppose I have one 5*1 vector containing observation IDs and frequencies, and one 3*1 vector containing observation IDs...
2012 Jul 30
2
Alternating between "for loops"
Dear All, I would like to apply two different "for loops" to each set of four columns of a matrix (the loops here are simplifications of the actual loops I will be running which involve multiple if/else statements). I don't know how to "alternate" between the loops depending on which column is "running through the loop" at the time. ## Set up matrix J <- 10 N
2006 Mar 04
2
Declaring ActiveRecord observers
Hello I''m using the ''act_as_authenticated'' plugin to implement a small and simple authentication system in my app. Everything is working just fine and the world is a better place to live in. The plugin creates a ActiveRecord observer in order to send the newly registered user a confirmation e-mail. Per the API docs [1], one should declare the observer in the
2003 Dec 29
1
transfer with MGCP
Hello, I`m try to make the attended transfer work Dlink DG-104S via FLASH, when somebody calls my phone I pickup and press flash to get a second line to call another extension. When I press flash I hear no dialtone, and only a long and then small beep. When I try to dial digits I hear again those long+short beeps, but the extension dialed is not ringing. If I pres flash again I get back to
2011 Aug 17
3
questions about "metafor" package
Hello,   I would like to do a meta-analysis with the package « metafor ». Ideally I would like to use a mixed model because I’m interested to see the effect of some moderators. But the data set I managed to collect from literature presents two limits.   -         Firstly, for each observation, I have means for a treatment and for a control, but I don’t always have corresponding standard deviations (52 of a total of 93 observations don’t have standard deviations). Nevertheless I have the sample sizes for all observations so I wonder if it was possible to weight observations by sample siz...
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all, I have a problem with an observer. I have a simple observer... class ActivityObserver < ActiveRecord::Observer observe Customer def after_create(model) bind_params(model) @al.action = "create" @al.save logger "#{model.id} : created" end private def bind_params(model) @al = ActivityLog.new @al.user_id = User.current.id
2009 Jul 31
1
Tests for Two Independent Samples
Dear R users, I have got two samples: sample A with observation of 223: sample A has five categories: 1,2,3,4,5 (I use the numer 1,2,3,4,5 to define the five differen categories) there are 5 observations in category 1; 81 observations in category 2;110 observations in category 3; 27 observations in category 4; 0 observations in category 5; To present t...
2006 Feb 22
2
Removing form observers
Hi, I''m developing a Rails app which uses dynamic forms. To implement these, I''ve used AJAX and Rails''s built-in form observers. Unfortunately, I''m having a problem. This is how the form starts: * Country select box [OBSERVED] (Republic of Ireland selected) * County select box [OBSERVED] (none selected, list of Republic of Irish counties in the drop down)
2009 Sep 22
3
Function similar to cumsum/cumprod
Hello, everyone I wonder if there is in R somewhere a function similar to cumsum(). The function calculates a statistic (say mean or standard deviation) buy adding consequtively one more data point. So, say I have a timeseries of 100 observations. I start by calculating mean of first 30 observations Then I add one observation and calculate mean of 31 observations Then I add one more observation and calculate mean of 32 observation, and so on until the end Is there a function like that in R? Best, Sergey -- Kniven sk?rpes bara mot stene...
2003 Oct 20
1
mgcp transfer takeback with ata186 (logs with comments - long post)
Hi, in following of a recent discussion I got to work on MGCP with the Cisco ATA186 again, and got it to work very nicely. However, there is a little thing with transfers I would like to get comments on: Call comes in from PSTN and goes to an ATA186 (MGCP) Call is answered and then, using flash, transferred to another extension If the extension is available, there can be an announcement and
2012 Jul 06
2
Anova Type II and Contrasts
...control group (CTRL) and 2 different treatment groups (TREAT_1 and TREAT_2). The data also includes 2 covariates COV1 and COV2. I have been asked to check if there is a linear or quadratic treatment effect in the data. I created a dummy data set to explain my situation: df1 <- data.frame( Observation = c(rep("CTRL",15), rep("TREAT_1",13), rep("TREAT_2", 12)), COV1 = c(rep("A1", 30), rep("A2", 10)), COV2 = c(rep("B1", 5), rep("B2", 5), rep("B3", 10), rep("B1", 5), rep("B2", 5), rep("B3&qu...
2006 Apr 26
1
Observer best practices
I''ve seen two ways of connecting observers: 1) In the observer class put observe MyModel 2) In the controller class put observer :my_observer What is the difference between these two? Also, is it necessary to put in the observer class the following? MyObserver.instance Jose -- Posted via http://www.ruby-forum.com/.
2017 Aug 03
1
test for proportion or concordance
Hello group, my question is deciding what test would be appropriate for following question. An experiment 'A' yielded 3200 observations of which 431 are significant. Similarly, using same method, another experiment 'B' on a different population yielded 2541 observations of which 260 are significant. There are 180 observations that are common between significant observations of A and B. (180 are common between 431 and 260)...
2006 Jul 30
2
Question about data used to fit the mixed model
Hi everyone, I would like to ask a question regarding to the data used to fit the mixed model. I wonder that, for the response variable data used to fit the mixed model (either via "spm" or "lme"), we must have several observations per subject (i.e. Yij, i = 1,..,M, j = 1,.., ni) or it can be just one observation per subject (i.e. Yi, i = 1,...,M). Since we have to specify the groups for random effect components, if we have only one observation per subject, then each group will have only one observation. Thank you ve...
2009 Nov 26
15
bad move? - complex form with *many* observe_field's
I have a pretty complex form with many text fields and a number of selects. We let the user add multiple types of associated objects to the parent object and to edit the values for those associated objs, so the form can have something like the following number of fields on the page: 9 text fields + 3 selects + a*(1 text + 1 select) + b*(1 text + 1 select) + c*(1 text + 1 select) + d*(1 text +
2006 Aug 01
8
Decoupled observers for controllers?
In the Rails Recipes book the recipe "Keeping track of who did what" explains how to do decoupled observing of models. In my application I''d like to do a similar thing but watching the controllers. For example, when somebody hits the login method of the Security controller, I''d like to make a note of it. In this case I could observe the User model and watch for