search for: observ

Displaying 20 results from an estimated 14398 matches for "observ".

Did you mean: observe
2010 Sep 09
0
Plotting dates and grid lines on the X-Axis of xyplot
...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 P-1 Oil 998.378103 3 Observed 60 P-1 Oil 974.083290 4 Observed 91 P-1 Oil 972.484199 5 Observed 121 P-1 Oil 953.325810 6 Observed 152 P-1 Oil 939.349538 7 Observed 182 P-1 Oil 927.391942 8 Obser...
2001 Apr 15
2
data manipulation in R
Dear List: I have a data manipulation problem that I was unable to solve in R. I did it in SQL, and it may be that the solution in R is to do it in SQL, but I wondered if people could imagine a vector-based solution. Imagine a list A[i] of observers who observe some set of events B[j]. Each observer i may observe one or more events, and each event j may have been observed by one or more observers. Thus the data are a lower-triangular array AxB where each cell [i,j] has a zero or one indicating whether observer i saw event j. I am inter...
2006 Mar 10
9
Observers?
Hello all! I''m having an issue with Observers, and I''m hoping someone knows the answer. Here is the definition: app/models/vehicle_observer.rb > class VehicleObserver < ActiveRecord::Observer > def after_save(vehicle) > breakpoint > if vehicle.has_new_mil_indication? > UserMailer.deliver_mil_n...
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 = ge...
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 observatio...
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 config/environment.rb file under the ''config.active_record.observers = :comment_observer, :signup_observer''. But reading the generated source code, th...
2003 Dec 29
1
transfer with MGCP
...MGCP/aaln/4@dg104s||t") in new stack -- MGCP mgcp_request(aaln/4@dg104s) -- MGCP cw: -1, dnd: 0, so: 0, sno: 0 -- MGCP mgcp_new(MGCP/aaln/4@dg104s-1) created in state: Down -- Called aaln/4@dg104s -- MGCP/aaln/4@dg104s-1 is ringing -- Endpoint 'aaln/4@dg104s-1' observed 'hd' -- MGCP/aaln/4@dg104s-1 answered MGCP/aaln/3@dg104s-1 -- MGCP mgcp_answer(MGCP/aaln/3@dg104s-1) on aaln/3@dg104s-1 -- Attempting native bridge of MGCP/aaln/3@dg104s-1 and MGCP/aaln/4@dg104s-1 -- Endpoint 'aaln/4@dg104s-1' observed 'hf' -- Swapping...
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 sampl...
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 = A...
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 pres...
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) when a user selects a county, the browser requests th...
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...
2003 Oct 20
1
mgcp transfer takeback with ata186 (logs with comments - long post)
....220) -- MGCP cw: 0, dnd: 0, so: 0, sno: 0 -- MGCP mgcp_new(MGCP/aaln/1@217.114.96.220-0) created in state: Down -- Called aaln/1@217.114.96.220 -- MGCP/aaln/1@217.114.96.220-0 is ringing -- Local/7001@pbx-0685,1 is ringing -- Endpoint 'aaln/1@217.114.96.220-0' observed 'hd' -- MGCP/aaln/1@217.114.96.220-0 answered Local/7001@pbx-0685,2 -- Local/7001@pbx-0685,1 stopped sounds -- Local/7001@pbx-0685,1 answered IAX2[virtupbx@virtupbx]/16384 == Spawn extension (from-pstn, 537503051, 1) exited non-zero on 'Local/7001@pbx-0685,2<ZOMB...
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("...
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...
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...
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 y...
2009 Nov 26
15
bad move? - complex form with *many* observe_field's
...ere the a, b, c, etc are the number of the diff types of assoc objs. Also, it''s designed to have an autosave function. I''ve taken an approach that is working, but I''m concerned that it may not be the best, mostly from a performance aspect. Each of the text fields has an observe_field set up for it with a :frequency => 1.5 (this seemed to be the best setting for this to catch rapid typing without droopping chars while the autosave is performed). And each of the selects observe_field() does not have the frequency set, so that it calls the autosave fxn only on change (...
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 authenticate?, b...