Displaying 20 results from an estimated 300 matches similar to: "chisq test with for loop"
2006 Dec 18
5
Replacing values
Hi all,
I have to recode some values in a dataset. for example changing all zeros to
"." or 999 would be also ok. does anybody know how to do this? thanks in
advance. lars
--
View this message in context: http://www.nabble.com/-R--Replacing-values-tf2841687.html#a7934402
Sent from the R help mailing list archive at Nabble.com.
2011 Jan 05
4
Converting Fortran or C++ etc to R
I'm going to try my hand at converting some Fortran programs to R. Does
anyone know of any good articles giving hints at such tasks? I will post
a selective summary of my gleanings.
Cheers, Murray
--
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz
2006 Nov 10
3
advanced plotting
!urgent! Hi all. I am facing a problem plotting a indicatormatrix to
visualize the pattern. Matrix consist from 1's and 0's.
for example x <- matrix(c(0,0,1,0, 1,1,1,1, 0,0,0,1, 1,0,1,1), nrow = 4,
ncol=4)
an i want to have a plot like
| .
| . . . .
| .
| . . .
|_______>
I thinking of somethink like a for loop, which creates a data point
whenever
2009 Feb 10
1
OT: did the wildfires affect tolstoy.newcastle.edu.au?
Just jumping to conclusions since the site is down as I type (7PM EST).
What's the news from that part of Australia -- thus showing my complete
ignorance of DownUnder geography.
2008 Mar 06
14
FXS channel banks
Greetings list,
I've been asked to provide a system for 200 extensions, most of which will be existing analogue POTS handsets, not IP handsets. I've not really had any experience with large channel banks in the past (since most of our deployments are strictly IP-only to the desk), so I'm at a loss as to which ones are worth looking at.
If anyone's had experience using channel
2006 Jan 05
2
Splitting the list
I've changed the heading because this really is another thread. I
think it inevitable that there will, in the course of time, be other
lists that are devoted, in some shape or form, to the concerns of
practitioners (at all levels) who are using R. One development I'd
not like to see is fracture along application area lines, allowing
those who are comfortable in coteries whose
2008 Mar 05
1
Newbie dialplan: dial 0 for outside line
I just managed to put in a TE410 card in an Asterisk box to work with
OnRamp 20(E1 downunder). I am able to dial in but was not able to dial
out.
Can anyone offer me some advice please?
In my extensions.conf, I just put in:
[default]
...
exten => 0,1,Dial(Zap/g1)
and I get this on the console when I dialled 0.
-- Executing [0 at default:1] Dial("SIP/5166-b76004f8",
2009 May 10
2
Unintended loading of package:datasets
The dataset package is being loaded apparently by one of the packages that I
am using. The loading of the datasets takes a long time and I would like to
eliminate it. I thought the datasets were effectively examples so don't
understand why they would be required at all.
1) How can I determine what is causing the datasets to be loaded?
2) How can I stop them from doing so?
I am using the
2007 Jul 18
2
memory error with 64-bit R in linux
Hi netters,
I'm using the 64-bit R-2.5.0 on a x86-64 cpu, with an RAM of 2 GB. The
operating system is SUSE 10.
The system information is:
-uname -a
Linux someone 2.6.13-15.15-smp #1 SMP Mon Feb 26 14:11:33 UTC 2007 x86_64
x86_64 x86_64 GNU/Linux
I used heatmap to process a matrix of the dim [16000,100]. After 3 hours
of desperating waiting, R told me:
cannot allocate vector of size
2006 Dec 25
1
Higher Dimensional Matrices
Hi all.
I want to calculate partial correlations while controlling for one or more
variables. That works already fine when I control for example just for x[,1]
and x[,2] that gives me one single correlation matrix and i have to to it
for
x [,1]...x[,10]. That would give me out 10 matrices. Controlling for 2
Variables 100 matrices. how
can I run a loop to get f.e the 10 or 100 matrices at once?
2007 May 01
0
[Fwd: Re: [R-downunder] Beware unclass(factor)] (PR#9641)
It really is unclear what is claimed to be a bug here. But see
https://stat.ethz.ch/pipermail/r-devel/2007-May/045592.html
for why the bug is not in R: your old and new data do not match.
Your fit is to a category.
[The problem with the web interface to R-bugs was reported last week: it
is being worked on.]
On Mon, 30 Apr 2007, r.darnell at uq.edu.au wrote:
> This is a multi-part
2004 May 12
0
Asterisk Downunder (Australia & New Zealand)
It seems that there is considerable interest in Asterisk in both
Australia and New Zealand.
I am trying to gauge how much interest there would be in a get together
for Asterisk users & developers downunder.
I suggest you get back to me OFF list, so we don't flood the list.
Just let me know if
a) you think it is a good idea
b) when would be a good time (a wide window would be
2006 Feb 10
0
Rails workshop downunder
If there''s any budding Sydney developers that are just starting out
with Rails and would like a head start, or if you have some friends
you''d like to "enlighten", the first Rails workshop in Australia is
being run alongside WebDU on March 1 in Sydney. It''s a half-day event
for A$365 and though it''s open to anybody (not just WebDU delegates)
2007 Mar 20
0
[R-downunder] las with stripchart
Hi Ross -
I believe I was wrong in thinking that passing via the ...
list to stripchart() was ever allowed. Here are patches:
Add ... to the argument list
Add, at the beginning of the function:
pars <- list(...)
There are two calls to axis(). Modify these to:
axis(1, at = at, labels = names(groups), las=pars$las)
axis(2, at = at, labels = names(groups), las=pars$las)
Also
2008 Apr 05
2
Adding a Matrix Exponentiation Operator
Hi all
I recently started to write a matrix exponentiation operator for R (by
adding a new operator definition to names.c, and adding the following code
to arrays.c). It is not finished yet, but I would like to solicit some
comments, as there are a few areas of R's internals that I am still feeling
my way around.
Firstly:
1) Would there be interest in adding a new operator %^% that performs
2006 Feb 15
2
Hint priority
Hi All
Has anyone managed to get the hint priority with Swissvoice IP10S phones
working?
I have 2 phones: a Snom 360, setup as the reception phone on extension
11, and a Swissvoice IP10S on extension 12.
When calling each other (tested both ways) I can only ever see the Snom
360 in the Active State from 'show hints'. The Swissvoice stubbornly
remains in the Idle State when on a call!
2010 Nov 10
2
Parallel code runs slower!
My parallel code is running slower than my non-parallel code! Can someone
pls advise what am I doing wrong here?
t and tTA are simple matrices of equal dimensions.
#NON PARALLEL CODE
nCols=ncol(t)
nRows=nrow(t)
tTA = matrix(nrow=nRows,ncol=nCols)
require(TTR)
system.time(
for (i in 1:nCols) {
x = t[,i]
xROC = ROC(x)
tTA[,i]=xROC
}
)
user system elapsed
123.24 0.07 123.47
#
2003 May 01
2
What' wrong?
I try to do single proportion test on my category data. Here is my R
script:
library("ctest")
catSignifTest <- function( catFile ) {
###############################################################
## Get the data sets from text file
catData <- read.table( catFile )
ncols <- length(catData)
nrows <- length(catData[,1])
ncol1 <- ncols - 1
probeNbr
2010 Jun 10
3
Retrieving the 2 row of "dist" computations
Dear R Gurus,
As you probably know, dist calculates the distance between every two rows of
data. What I am interested in is the actual two rows that have the least
distance between them, rather than the numerical value of the distance
itself.
For example, If the minimum distance in the following sample run is d[14],
which is .3826119, and the rows are 4 & 6. I need to find a generic way to
2011 Apr 18
2
Avoiding loop
Hi everyone.
I'm using matrix product such as :
#Generate some data
NCols = 5
NRows = 5
A = matrix(runif(NCols*NRows), ncol=NCols)
B = matrix(runif(NCols*NRows), ncol=NCols)
#First calculation
R = A%*%B
for(i in 1:100)
{
R = R%*%B
}
I would like to know if it was possible to avoid the loop by using something
like mapply or anything else.
Tx in advance,
Phil
--
View this message