Displaying 20 results from an estimated 10000 matches similar to: ""evaluating expressions" contained in a dataframe"
2007 May 08
3
Mantel-Haenszel relative risk with Greenland-Robins variance estimate
Does anyone know of an R function for computing the Greenland-Robins
variance for Mantel-Haenszel relative risks?
Thanks
Frank
--
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
2009 Mar 18
1
lm function (PR#13608)
Full_Name: Michael Aaron Karsh
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (75.61.109.172)
I tried using the lm function to regress the third column listed below on the
second column listed below. It gave me an error message. My code is below.
> HDISWLSdata=read.table("RHDISWLS.txt")
> HDISWLSdata
V1 V2 V3
1 DENMARK
2014 May 01
3
How to test if an object/argument is "parse tree" - without evaluating it?
This may have been asked before, but is there an elegant way to check
whether an variable/argument passed to a function is a "parse tree"
for an (unevaluated) expression or not, *without* evaluating it if
not?
Currently, I do various rather ad hoc eval()+substitute() tricks for
this that most likely only work under certain circumstances. Ideally,
I'm looking for a isParseTree()
2008 Dec 13
6
Country numbering plan resources
Is there any good free / accurate online resources with detailed country
numbering plans? Failing that let's get something running ourselves.
I was also thinking maybe people present could contribute some information on
this list for now. The countries I am after are below.
To start this off I will provide the information for Australia +61 and New
Zealand +64.
NZ Cellular:
area code 21
2003 Aug 13
4
FXO mode
I've had a few problems with my system holding the line after a call has
been made, just now I rebooted and noticed the following in
/var/log/messages
Aug 13 17:23:15 Sheriff kernel: wcfxo: DAA mode is 'FCC'
in the file wcfxo.c the following structure is initialised as below
which would suggest that FCC is wrong for France or pretty well all of
Europe.
static struct fxo_mode {
2004 Jul 12
8
Gogoif with variables acting funny?
Using an example provided by "The Hitchhiker's Guide to Asterisk", I
made the following addition to my extensions.conf file:
[inbound-analog]
exten => s,1,Wait(1)
exten => s,2,SetVar(counter=0)
exten => s,3,Answer()
exten => s,4,Wait(1)
exten => s,5,DigitTimeout(15)
exten => s,6,ResponseTimeout(10)
2005 Feb 27
2
Introducing the Asterisk Realtime Architecture - ARA
I've added an introduction article about the ARA on my web site
http://www.voip-forum.com/
The same text is now also added to CVS head as README.realtime.
On the same site, you will also find the news item about how we used
Asterisk for a call from an airline jet above Greenland to Stockholm,
Sweden. The world is getting smaller and more connected every day!
/Olle
2003 Sep 09
1
Getting a local number abroad - Newbie question
Hello!
I have a staff member abroad and need to provide him with the ability to
make local calls. The features I need are:
* Possibillity to make calls at local (Icelandic) charges from Ireland
office.
* Possibillity to call the local Icelandic number and reach the Ireland
office.
I'm also wondering if there is any isdn based solution since there is a
possibillity of another staff
2004 May 14
3
X100P and TDM400P non-USA Caller ID
I am sure that quite a lot of people would like to have Caller ID
working with their X100P and TDM400P cards outside of USA.
Judging from previous threads this is just a matter of implementing this
support in the software driver!
So, I was thinking, if we get together and put few $(USA DOLLARS) into a
basket, we could then ask Digium to actually properly implement Caller
ID for non USA
2003 May 09
2
Data-mining using R
Is it possible to use R as a data-mining tool? Here's the problem I've
got. I have a couple of data sets consisting of results from a cDNA
microarray experiment - the details about the biology don't really matter here, the
same theory applies for any other data-mining task (that's why I thought it'd
be more appropriate to post this on r-user). Each of these datasets consists
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)
2002 Aug 07
2
Constructing titles from list of expressions
Hello!
I have the following problem:
I have a function to construct three surfaceplots with a marker for an optimum,
each of the plots has as title paste("Estimated ",pred.var.lab," for
",var.lab[1]," vs. ",var.lab[2],sep="") with different var.lab[1,2] each time.
My problem is now that I need to allow for plotmath expressions in the
variables pred.var.lab
2018 Jan 04
3
silent recycling in logical indexing
Hmm.
Chuck: I don't see how this example represents
incomplete/incommensurate recycling. Doesn't TRUE replicate from
length-1 to length-3 in this case (mat[c(TRUE,FALSE),2] would be an
example of incomplete recycling)?
William: clever, but maybe too clever unless you really need the
speed? (The clever way is 8 times faster in the following case ...)
x <- rep(1,1e6)
2001 Sep 14
5
Our Sympathies
The following is a message to be sent to the President
of the United States of America. Although we may not be able to do a
great deal from where we are, but for the people of America just
knowing we care and feel their sadness will help. Please put your name
on the following list and send it to all you know and who care. If you
are the 100th name and every 100th there on could you please also
2004 May 14
1
covariates in lm
Dear R list,
I have been trying to do a linear model, extracting the effect of a
covariate.... and the results do not match, when I do it with other programs
(e.g. minitab).... so it is obvious that I was doing something wrong.
Whan I do it with minitab, I have this results: (sector is a factor and depth
is the covariate):
Source DF Seq SS Adj SS Adj MS F P
2009 Dec 01
1
Adding and Multiplying two Unevaluated Expressions
HI,
As I'm trying to compute Taylor series, I'm having problems in adding and multiplying unevaluated expressions. I searched for a solution but found none.
my Taylor function works fine for evaluating functions as you can see here:
rTaylorVal=function(exp,x0,dx,n) {
ls=list(x=x0)
newexp=eval(exp,ls)
exp0=exp
for (i in 1:n){
exp0=D(exp0,"x")
2018 Jan 04
3
silent recycling in logical indexing
Sorry if this has been covered here somewhere in the past, but ...
Does anyone know why logical vectors are *silently* recycled, even
when they are incommensurate lengths, when doing logical indexing? This
is as documented:
For ?[?-indexing only: ?i?, ?j?, ?...? can be logical
vectors, indicating elements/slices to select. Such vectors
are recycled if necessary to match
2007 Jul 30
2
deriv, loop
Hi, 2 questions:
Question 1: example of what I currently do:
for(i in 1:6){sink("temp.txt",append=TRUE)
dput(i+0)
sink()}
x=scan(file="temp.txt")
print(prod(x))
file.remove("C:/R-2.5.0/temp.txt")
But how to convert the output of the loop to a vector that I can manipulate
(by prod or sum etc), without having to write and append to a file?
Question 2:
>
2006 Oct 27
2
all.names() and all.vars(): sorting order of functions' return vector
Dear list-subscriber,
in the process of writing a general code snippet to extract coefficients
in an expression (in the example below: 0.5 and -0.7), I stumbled over
the following peculiar (at least peculiar to me:-) ) sorting behaviour
of the function all.names():
> expr1 <- expression(x3 = 0.5 * x1 - 0.7 * x2)
> all.names(expr1)
[1] "-" "*" "x1"
2001 Oct 05
1
nls() fit to a lorentzian - can I specify partials?
First, thanks to all who helped me with my question about rescaling axes
on the fly. Using unlist() and range() to set the axis ranges in advance
worked well. I've since plotted about 300 datasets with relative ease.
Now I'm trying to fit a lossy oscillator resonance to (the square root of)
a lorentzian (testframe$y is oscillator amplitude, testframe$x is drive
frequency):
lorentz