Displaying 9 results from an estimated 9 matches similar to: "loop"
2007 Jul 16
0
FW: summary statistics for groups
Kirsten,
this may not be the most elegant approach, but I think I would create
dummy variables on the fly for each disease code you have, then use the
"with" function to get means.
Give this a try:
# setup some fake data as an example
icd9 <- c(rep("dis1",4), rep("dis2",5), rep("dis3",3))
n <- length(icd9)
exposure <- rnorm(n)
working <-
2011 Feb 06
1
How to use a value of an aboject in a line command?
This is my first time here at R Forum!
I am a new user of R. I am very happy with this fabulous software!
I know how to use greps, fors, seeds, %in%, paste, etc.
But I need to know how to use a value of an aboject in a line command?
Example:
> i
[1] "TP53"
> TP53
V1 V2 V3
1 1 TP53 1.1
2 2 TP53 1.2
3 3 TP53 1.3
I would like to do a t.test of TP53 x
2010 Jun 08
2
constructing a contingency table (ftable, table)
Dear all,
an hopefully quick table question.
I have the following data:
Two objects that are 2*9 matrix with nine column names (Dis1, ...,
Dis9) and the row names (2010,2020). The content are frequencies
(numeric).
In want to create a table that is along the lines of
ftable(UCBAdmissions) and should looks like this:
Dis1 | ...| Dis9
2010|2020|....|2010|2020
(first row,first column is the value
2012 Mar 19
1
Lag based on Date objects with non-consecutive values
Hello all,
I need to figure out a way to lag a variable in by a number of days
without using the zoo package. I need to use a remote R connection
that doesn't have the zoo package installed and is unwilling to do so.
So that is, I want a function where I can specify the number of days
to lag a variable against a Date formatted column. That is relatively
easy to do. The problem arises when I
1999 Sep 30
3
plotting text on a postscript device
It seems that the text command isn't working for a postscript device.
Here is my code:
#-----------------------------
# I have stored some data in a 21 by 21 matrix called mat
x <- 1:ncol(mat);
y <- 1:nrow(mat);
labs <- c(" ", "1298", "1537", "TP53", "786", "974", "1303", "1288",
"1294",
2008 Mar 12
0
R code for kernel density using kd-tree, looking for speed up
Dear R-help-list,
The following is R function I wrote for computing multi-dimensional kernel density. I am seeking R experts who can make the code to run faster, 50 times faster ideally.
Specifically, for function
kernel.estimate = function(points, bw),
the argument points is a d by n matrix as the n points in the d-dimensional space, bw is the bandwidth. The function will compute the kernel
2001 Jun 12
1
cophenetic matrix
Hello,
I analyse some free-sorting data so I use hierarchical
clustering.
I want to compare my proximity matrix with the tree
representation to evalute the fitting. (stress, cophenetic correlation
(pearson's correlation)...)
"The cophenetic similarity of two objects a and b is defined as the
similarity level at wich objects a and b become members of the same
cluster during the course of
2000 Apr 21
1
SAMBA Browse Lists Sync DMB and LMB
Hello !
I have a problem of syncing browse lists between
DMB and LMB.
The topology of ours network is as follows:
Linux Network
comma(Linux, DMB, WINS) vol(Linux) door(Linux, LMB)
| | | | | | |
| | --------------(195.226.226.16/28)------ | |
| | | |
| --(local net
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
AUTHORS | 17 ++++++
README | 10 +++
conf/ovirt-agent | 12 ++++
conf/ovirt-db-omatic | 12 ++++
conf/ovirt-host-browser | 12 ++++