Displaying 20 results from an estimated 14467 matches for "observables".
Did you mean:
observable
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
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
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_notice(vehicle)
> end
> end
> end
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.
observation<-c(1,2,3,4,5)
ID<-c(1,3,4)
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
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 the sample in R: a<-rep(1:5,
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
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
the study design of the data I have to analyse is simple. There is 1 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 =
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
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
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