Displaying 20 results from an estimated 5000 matches similar to: "improving/speeding up a very large, slow simulation"
2009 Mar 26
2
loading and manipulating 10 data frames-simplified
I have to load 10 different data frames and then manipulate those 10 data
frames but would like to do this in a more simplified code than what i am
doing. I have tried a couple of approaches but cannot get it to work
correctly.
So the initial (bulky) code is:
#Bin 1
#-------
#Loads bin data frame from csv files with acres and TAZ data
Bin1_main <-
2008 Nov 07
1
For Loop - loading 10 sets of data and calculating
I am trying to simplify my code by adding a for loop that will load and
compute a sequence of code 10 time. They way i run it now is that the same
8 lines of code are basically reproduced 10 times. I would like to replace
the numeric value in the code (e.g. Bin1, Bin2....Bin10) each time the loop
goes around. Below i tried doing this with a simple for loop and adding the
string character before
2009 Oct 29
5
Summing identical IDs
Hello All,
I would like to select records with identical IDs then sum an attribute
then and return them to the data frame as a single record. Please consider
Acres<-c(100,101,100,130,156,.5,293,300,.09)
Bldgid<-c(1,2,3,4,5,5,6,7,7)
DF=cbind(Acres,Bldgid)
DF<-as.data.frame(DF)
So that:
Acres Bldgid
1 100.00 1
2 101.00 2
3 100.00 3
4 130.00 4
5 156.00 5
2010 May 24
1
Error during wrapup: cannot open the connection
I am trying to use a new (to me) package (samr) and even when I try to run a
very simple example, I get this "cannot open the connection" error.
The reason I am writing to r-help rather than to the authors of samr is I
think this may be a more general R problem rather than a samr-specific
problem. Perhaps something with my installation and write access to some
particular place ? I am
2008 Sep 24
2
Calling object outside function
What i thought was a simple process isnt working for me. After i create an
multiple objects in a function (see below), how to i use those objects later
in the program. I tried calling the function again and then the object i
wanted and it worked the first time but now it doesnt( i think i defined the
object outside the function accidently so then it worked but when run
properly it doesnt). I
2004 May 12
1
summary table newbie question
I've got a newbie question and I got a little lost in the "table helps".
I've got a data.frame I would like to summarize as a (and pardon for the
lack of correct vernacular) data collection matrix. My data looks like,
stand siteindex age acres pct.acres
1 232 116 45 8477.3105 0.56159458
2 234 121 25 11120.1530 0.73667441
3 235 132 25
2008 Sep 30
1
conditional loop
I am looking up a number based upon a randomly selected number and then
proceed to the rest of my code if the corresponding value is greater than or
equal to yet another value.
so if
Dev_Size = 14
and my randomly selected number is 102
and i am looking up 102 in the following table
100 21
101 4
102 9
103 52
104 29
So i select the the corresponding value of 102, which is 9 and
2009 Sep 24
1
Non-parametric test for location with two unpaired sets of data measured on ordinal scale.
Please forgive a stats question.
I have to sets of data (unpaired) measured on an ordinal scale. I want to test to see if the two sets are different (i.e. do they have the same location):
set1: 1,3,2,2,4,3,3,2,2
set: 4,4,4,3,3,5,4,4
What is the most appropriate non-parametric test to test location?
Thanks,
John
Confidentiality Statement:
This email message, including any attachments, is
2006 Nov 23
2
t.test()
Hi
I have a vector x of length n. I am interested in x[1]
being different from the other observations (ie x[-1]).
My null hypothesis is that x[1]
is drawn from a Gaussian distribution of the same
mean as observations x[-1], which are assumed
to be iid Gaussian. The (unknown) variance
of x[1] is assumed to be the same as the
variance of x[-1].
This should be an unpaired t-test.
But
2006 Sep 14
1
EBAM ERROR
Dear RUsers,
I am new to R. I am learning how to use R. I am a PC user and run R on
windows. I would appreciate if some one could guide me on a few questions I
have:
1) I have 4 cel files (2 replicates for NORM and Disease resp). I have been
able to run siggenes on this dataset where I have 4 labels in the class file
groupsnhi.cl op-> (0,0,1,1) and my data has been read into datrmanhi after
2006 Nov 18
1
Why SAM has totally diffent results in R2.1.1 and R2.4.0
Hi,
I am using SAM (from siggenes_1.2.11 package) method to select genes from
a microarray data set. After installing the latest R2.4.0 on my computer, to
my surprise the results are totally different from that calculated using
R2.1.1. Even the example code doesn't work the same way under these two
versions of R. Does anybody know what is going on? Thanks for any
suggestions.
2013 Nov 20
2
Multiple if statement in loop condition
What this message means is that a "{" showed up when some other bracket was
unpaired. In this case, if you check your code, you'll see that
"if(MatriceDist[i,j] > 0 & ((vectorID[i] > 0 | vectorID[j] > 0))" is
lacking a closing ")" for the if clause.
Phalaen wrote
> Hi!
> I am a Phd student in the university of Padua and I am trying to
2007 Jan 23
3
the value of Delta
Dear all,
I am running R 2.4.1.
> library(siggenes);
> library(multtest);
> cl<-rep(c(0,1),c(3,3));
> sub<-exprs(AffyExpData[,c(1:3,7:9)]);
> gn<-geneNames(AffyRAwData);
> sam.out<-sam(sub,cl,rand=123,gene.names=gn);
We're doing 20 complete permutations
> sam.out
SAM Analysis for the Two-Class Unpaired Case Assuming Unequal Variances
Delta p0
2010 Jan 31
0
Package ismev, gpd.fit, and interpretation for statistics of extreme values
Dear All,
I have a question about package "ismev", its function "gpd.fit", and
interpretation of the results.
I used the package ismev to do an extreme value analysis on a fire
dataset. Two variables are used in the analysis. The focal variable is
acreage burned per fire, ranging from 1 to 5000 acres per fire. In
total, there are 69,980 observations. The date covers
2009 Mar 13
1
cor.test(x,y)
Hi,
I am not sure which kind of test is applied to the data if you use
cor.test(x, y) ?
Is it an unpaired t-Test?
Regards
--
View this message in context: http://www.nabble.com/cor.test%28x%2Cy%29-tp22492993p22492993.html
Sent from the R help mailing list archive at Nabble.com.
2001 Nov 19
1
Command line trash ?
Hi!
I'm attempting to start setup.exe from office97 package.
The installer starts but then bails out with the dialog
Wrong parameters on the command line: "
(see the unpaired double quote) and then pops another dialog
with its usage, then exits.
I'm calling it just with wine setup.exe, no quotes nor
other characters there. I was trying to compensate this character
by putting one
2010 May 25
1
doubt about samr siggenes.table$genes.up
Hi, here's my siggenes.table$genes.up snippet.
Two class unpaired SAMR analysis.
"Row" "Gene ID" "Gene Name" "Score(d)" "Numerator(r)" "Denominator(s+s0)"
"Fold Change" "q-value(%)"
"1" "25" "RPL15P22" "RPL15P22" "-1.44115338424578" "-18"
2010 Apr 19
6
comparing attitudes of 2 groups / likert scales?
Hi,
I have just found this forum, and it looks like a great place to get some
help (I hope)
For my dissertation, which is due way too soon, I am doing a survey,
comparing attitudes of 2 independent groups, with 5 scale likert questions.
Basically I want to show if they have similar or different attitudes. I am
testing 4 hypotheses, and have in total about 20 questions.
I have to say my
2003 Aug 21
1
comparing segments of a time series
Hi,
I have a time series of 38 wintertime average snow depths
measured at a particular meteorological station. The data appear to
undergo a "climate shift" in the early 1980s: before the shift the
mean and sd are 152 +/- 58, after the shift 92 +/- 36. The
distribution is not normal; there's a hard limit at zero of course and
there are outlier years with very high snowfall. I
2004 May 13
2
xtable without rownames
When I tried to read all the entries (after searching the FAQ) for "row
names xtable", I get
START-INFO-DIR-ENTRY * R FAQ: (R-FAQ). The R statistical system ...
... xtable* Export data to LaTeX and HTML tables. ... For dropping the row
names of a matrix
`x', it may be easier to use `rownames(x) <- NULL', similarly for column ...