Displaying 20 results from an estimated 20000 matches similar to: "merge two lists by column"
2003 Sep 09
2
Matrix resampling (bootstraps)
Dear all,
I am trying to generate bootstrap replicate matrixes (rows=samples,
column=species, sampling with replacement) from a matrix dataset, but I do
not know how to do it in R. I have tried boot() and bootstrap(), but they
require an statistic, which in my case is cluster analysis (generating
bootstrap values for a cluster analysis is a topic that has been mentioned
previously in
2012 Jun 26
2
flatten lists
I am looking for a function to flatten a list to a list of only 1
level deep. Very similar to unlist, however I don't want to turn it
into a vector because then everything will be casted to character
vectors:
x <- list(name="Jeroen", age=27, married=FALSE,
home=list(country="Netherlands", city="Utrecht"))
unlist(x)
This function sort of does it:
flatlist
2011 May 01
1
caret - prevent resampling when no parameters to find
I want to use caret to build a model with an algorithm that actually has no
parameters to find.
How do I stop it from repeatedly building the same model 25 times?
library(caret)
data(mdrr)
LOGISTIC_model <- train(mdrrDescr,mdrrClass
,method='glm'
,family=binomial(link="logit")
)
LOGISTIC_model
528
2012 May 25
2
Collecting results of a test with array
Dear contributors
I have tried this experiment:
x<-c()
for (i in 1:12){
x[i]<-list(cbind(x1[i],x2[i])) #this is a list of 12 couples of time
series I am using to perform a test
} # that compares them 2 by 2
#
#################
#trace statistic
test<-data.frame()
cval<-array( , dim=c(2,3,12))
for (i in 2:12){
for (k in 1:2){
for (j in 1:3){
result[k,j,i]<-
2010 Jun 03
3
(no subject)
Dear R users,
I am trying to draw error bars in a bar plot, I use this code (tried many others which did not work):
install.packages()
library(gplots)
y <-c(39.02, 46.42)
se <- c(7.57,7.35)
plot <- barplot(y, beside=TRUE, col=0, ylim=c(0,47), axis.lty=1, main="far-red", xlab="latitude", names.arg=c("56N", "68N"))
superpose.eb(plot, y, se,
2012 May 02
1
[PATCH] resample: Fix input indexing bug from interleaved functions
From: Jyri Sarha <jsarha at ti.com>
This bug happens quite often when resampling from a low to a high
sample-rate with big enough factor. Also the resampling call has to
be limited by the output buffer size and some unused samples needs be
left in the input buffer.
Sometimes when up-sampling with a big factor the resampling function
wants to peek one more sample from the input buffer to
2011 Oct 10
2
can't snapshot
Good morning Btrfs list,
I am trying to create a subvolume of a directory tree (approximately 1.1
million subvolumes under nfs1). The following error is thrown and
without the wiki I don''t know what argument is needed. I am running
kernel 3.1.0-rc4.
[root@btrfs ~]# btrfs sub snapshot /btrfs/nfs1/ /btrfs/snaps/
Invalid arguments for subvolume snapshot
[root@btrfs ~]# btrfs sub list
2011 Feb 21
2
linear regression and t-distribution
Hello
I have a data set with outlier and it is not normally distributed. I would instead like to use a more robust distribution like t-distribution.
My question is if the coefficients of the regression are different from zero, but assuming a t-distribution.
Could someone hint me what package to use or....
Thanks in advance
Rosario
2009 Oct 03
1
Passing lists and R memory usage growth
Hello,
I can't think of an explanation for this memory allocation behaviour
and was hoping someone on the list could help out.
Setup:
------
R version 2.8.1, 32-bit Ubuntu 9.04 Linux, Core 2 Duo with 3GB ram
Description:
------------
Inside a for loop, I am passing a list to a function. The function
accesses various members of the list.
I understand that in this situation, the entire
2007 May 14
3
zaptel huge irq problem
Hello,
I had noticed strange crackling sound on my phone calls going through my
zaptel device (TDM400P), so i decided to check on possible timer issue,
and found lots of issues on forums concerning the sensibility of zaptel
with IRQs, and tried about everything: moving PCI slots, noapic and
acpi=off boot options, play with different kernel options:
iosched/preemption/timer/..., play with
2011 Aug 04
3
persp()
Hello
I am trying to draw a basic black and white map of two European countries.
After searching some key words in google and reading many pages I arrived to the conclusion that persp() could be used to draw that map.
I have prepared three small example files, which are supposed to be the files required for running that function.
xvector is a vector with the longitudes
yvector is a vector with
2012 Feb 07
2
box.cox
Hello
I am using box.cox() and I get this error message:
Warning message:
'box.cox' is deprecated.
Use 'bcPower' instead.
See help("Deprecated") and help("car-deprecated").
I went to help but I did not understand the explanation, I am still wondering what is really happening.
Thanks
/R
2010 Oct 27
2
plot by cathegories within a factor
Hello
I have a data set summarized like this:
File name= Height
Group Ind Age Trait
1 1 1 20
1 1 2 21
1 2 1 22
1 2 2 21
1 3 1 24
1 3 2 45
1 4 1 23
1 4 2 26
2 1 1 45
2 1 2 12
2 2 1 25
2 2 2 26
2 3 1 45
2 3 2 43
2 4 1 23
2 4 2 47
.
.
.
I would like to plot Trait ~ Age but a different plot for each Group.
I tried:
> plot(Height$Trait ~ Height$Age | Group)
But does not work. Any
2011 Nov 14
1
patch for UID 0 problem
Hi all,
attached you'll find a patch for cmd-thread.c which addresses a problem with certain clients in
conjunction with the use of the UID THREAD REFS command:
TAG5 UID THREAD REFS us-ascii SINCE 14-May-2011
* THREAD
(0)(246)(247)(248)(249)(250)(252)(253)(254)(255)(256)(257)(258)(259)(260)(261)(262)(263)(264)(265)(266)(267)(268)
TAG5 OK Thread completed.
The first UID delivered (0) is
2007 Mar 22
1
[SPAM] RE: Encoding audio sampled at 44.1 khz?
________________________________
Hi David,
Thank you very much for your reply. Since I need to resample the audio in the program itself, I decided to try out the resampling API in speex.
But now, I have another problem. The resampled sound is very much distorted and clicks appear quite often. (I have attached the source code I used for testing it below).
The test data I had was a file sampled
2010 Nov 29
1
extracting P values from lm model
Hello
I am trying to get out of an lm model the fstatistics, however after I run the model I write
> names(Model)
and the fstatistic does not appear only these.
names(Model)
[1] "coefficients" "residuals" "effects" "rank" "fitted.values"
[6] "assign" "qr" "df.residual"
2008 May 04
1
Residual resampling for non linear reg model
I was attempting to use the residual resampling approach to generate 999 bootstrap samples of alpha and beta and find their confidence intervals. However, I keep getting the error message:Error in nls(resample.mp ~ cases/(alpha + (beta * cases)), start = init.values, : singular gradientafter R has only produced a few bootstraps.Could anyone suggest where I am going wrong? Would greatly
2003 Dec 16
6
Resampling Stats software
Hi,
I am new to R (I have most of my experience in SAS and SPSS). I was
wondering if anyone has used both Resampling Stats and R, and could comment
on strengths/relationships. Also, I have no clue on how to do the various
examples from the book "Resampling: The New Statistics" in R. Can anyone
give me some possible starting points? Or websites/books?
Thanks,
Brandon
2006 Mar 08
2
Survival Plots by Strata
All,
I am struggling to create a survival plot using LTRC data for each year
of a 10 year period.
I have a set of individuals (birds) where 'entry' is the day of the
year (1-365) they are released (let out of pens) into the wild (2 year
data snip below). 'Entry' (e.g., day of year the first bird is
released for each year) is highly variable, ranging from 48 to >250.
When I
2011 Jul 31
3
export/import matrix
Hello
I have a problem on keeping the format when I export a matrix file with the write.table() function.
When I import the data volcano from rgl package it looks like this in R:
> data[1:5,]
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]
[1,] 100 100 101 101 101 101 101 100 100 100 101 101 102 102
[2,] 101 101 102 102 102 102 102