search for: sampling

Displaying 20 results from an estimated 23699 matches for "sampling".

2012 Jan 30
3
Venn Diagram help!!!!
Hi there ! I've got 7 Samples that may contain 29 differents kinds of material.... every line below corresponds to a differente kind of material, example: Sample 1, 2,3,5 and 6 has material 1 .... So I want to know how can I do a Venn Diagram with the data below .... ps ( it was generated by a csv, where every line is sep with (";")) Can someone helps me ? thanks csv file :
2017 Aug 05
2
Nested for loop
...% and 15% of the population (800). From 201-300 take 100 samples that are between 5% and 15% of the population (300). I assume this would require a nested for loop. Does anyone have advice as to how to do this? Thanks for your time. Kirsten ## Mark-Recapture ## Estimate popoulation from repeated sampling ## Population size N <- 400 N ## Vector labeling each item in the population pop <- c(1:N) pop ## Lower and upper bounds of sample size lower.bound <- round(x = .05 * N, digits = 0) lower.bound ## Smallest possible sample size upper.bound <- round(x = .15 * N, digits = 0) upper.boun...
2006 Apr 10
7
te110p and interrupts
Guys. I have an issue with a te110p card and also some tdm04b cards on the same system: Zttest returns this for the tdm04b cards: [root@mollendo ~]# /usr/src/zaptel-1.2.4/zttest 38 -v Opened pseudo zap interface, measuring accuracy... 8192 samples in 8191 sample intervals 99.987793% 8192 samples in 8192 sample intervals 100.000000% 8192 samples in 8192 sample intervals 100.000000% 8192 samples
2004 Aug 25
1
brlr function
Hi, I'm trying the brlr function in a penalized logistic regression function. However, I am not sure why I am encountering errors. I hope to seek your advice here. (output below) Thank you! Your help is truly appreciated. Min-Han #No error here, the glm seems to work fine >
2017 Aug 06
0
Nested for loop
Hi Kirsten, I can run your example code but I can't quite follow your division of sampling. Can you restate the the task? Below is what I think you are asking for, but I have the feeling I may be off the mark. Set A: 400 samples, draw 100 in range of 5 to 15 Set B: 800 samples, draw 100 in range of 5 to 15 Set C: 300 samples, draw 100 in range of 5 to 15 Ben > On Aug 5, 2017,...
2017 Aug 06
1
Nested for loop
...show how population affects the estimates. Does this make more sense? Thanks for your time! Kirsten On Sun, Aug 6, 2017 at 3:21 PM Ben Tupper <btupper at bigelow.org> wrote: > Hi Kirsten, > > > > I can run your example code but I can't quite follow your division of > sampling. Can you restate the the task? Below is what I think you are > asking for, but I have the feeling I may be off the mark. > > > > > > Set A: 400 samples, draw 100 in range of 5 to 15 > > > > Set B: 800 samples, draw 100 in range of 5 to 15 > > > > Set C...
2008 May 15
3
Warcraft 3 Problem. sortof.
whenever i try to run warcraft 3 via wine it comes up with a large amount of error messages but still runs... any idea on how to fix these messages? i am running it forcing opengl > > err:ole:CoCreateInstance apartment not initialised > fixme:advapi:SetSecurityInfo stub > fixme:win:EnumDisplayDevicesW ((null),0,0x33f3b8,0x00000000), stub! > fixme:win:EnumDisplayDevicesW
2017 Aug 08
1
Nested for loop
...een 5% >> and 15% of the population (300). >> >> I assume this would require a nested for loop. Does anyone have advice as >> to how to do this? >> >> Thanks for your time. Kirsten >> >> ## Mark-Recapture >> ## Estimate popoulation from repeated sampling >> >> ## Population size >> N <- 400 >> N >> >> ## Vector labeling each item in the population >> pop <- c(1:N) >> pop >> >> ## Lower and upper bounds of sample size >> lower.bound <- round(x = .05 * N, digits = 0) >>...
2010 Jan 21
2
Create a multi dimensional array from a data frame
Hello all, I have data from a csv that i need to coerce into a multi dimensional array. As you can see from my sample code i have yet to master building efficient code. I can sort of do what i want but its very cumbersome code and i know there is a better way to do it, i am just not expereinced enought yet. So for the following: #Create Data h1i1a1<-sample(1:20, 5, replace=TRUE)
2012 May 16
2
Help needed for efficient way to loop through rows and columns
Dear R-helpers: I am trying to write a script that iterates through a dataframe that looks like this: Example dataset called "sample": names <- c("S1", "S2", "S3", "S4") X <- c("BB", "AB", "AB", "AA") Y <- c("BB", "BB", "AB", "AA") Z <- c("BB",
2017 Aug 19
2
bootstrap subject resampling: resampled subject codes surface as list/vector indices
I'm implementing a custom bootstrap resampling procedure in R. This procedure resamples clusters of data points obtained by different subjects in an experiment. Since the bootstrap samples need to have the same size as the original dataset, `target.set.size`, I select speakers compute their data point contributions to make sure I have a set...
2006 Feb 14
3
S4 classes and methods with optional arguments
Hi, i have used S4 classes to implement a unified access to random number generators (package rstream on CRAN). I have used a construct to allow optional arguments: if(!isGeneric("rstream.sample")) setGeneric("rstream.sample", function(stream,...) standardGeneric("rstream.sample")) setMethod("rstream.sample",
2010 Nov 03
3
Using sample() to sample one value from a single value?
...mple(rep(10, times=2), size=2); [1] 10 10 but you cannot sample from c(10) by doing: > sample(rep(10, times=1), size=1); [1] 9 unless you sample from a value <= 1, e.g. sample(rep(0.31, times=1), size=1); [1] 0.31 sample(rep(-10, times=1), size=1); [1] -10 Note also the related issue of sampling from a double vector of length 1, e.g. > sample(rep(1.2, times=2), size=2); [1] 1.2 1.2 > sample(rep(1.2, times=1), size=1); [1] 1 I the latter case 1.2 is coerced to an integer. All of the above makes sense when one study the code of sample(), but sample() is indeed dangerous, e.g. imagin...
2007 Sep 27
2
create data frame(s) from a list with different numbers of rows
# Hello, # I have a list with 6 categories and with different numbers of rows. # I would like to change each of them into a unique data frame in order to match # values with other data frames and perform some calculations. # Or I could make each category or list element have the same number of rows and create one large data.frame. # below is a creation of a sample list # I apologize for the
2006 Mar 23
3
Sampling in R
Hi all! I was wondering if you can help me with a little sampling issue I'm having in R. I have a database with 100 observations. I need to sample n=9 sample size, 200 times (i.e. get 200 samples of size 9). N (pop. size) =100 Each sample can't contain the same observation more than one time (i.e. the program needs to check if the obs. has already...
2006 Feb 22
1
FC4 and yum install; how to configure questions
I installed FC4, ran command, # yum install asterisk. A bunch of stuff happened, but can't locate .conf files. I have a list of files: /usr/share/doc/asterisk-1.2.4/configs/features.conf.sample /usr/share/doc/asterisk-1.2.4/configs/rtp.conf.sample /usr/share/doc/asterisk-1.2.4/configs/extensions.conf.sample /usr/share/doc/asterisk-1.2.4/configs/logger.conf.sample
2017 Aug 19
0
bootstrap subject resampling: resampled subject codes surface as list/vector indices
...ng an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Aug 19, 2017 at 7:39 AM, Aleksander G??wka <aglowka at stanford.edu> wrote: > I'm implementing a custom bootstrap resampling procedure in R. This > procedure resamples clusters of data points obtained by different subjects > in an experiment. Since the bootstrap samples need to have the same size as > the original dataset, `target.set.size`, I select speakers compute their > data point contributions to make s...
2003 Feb 25
1
sample (PR#2546)
There is rumour that some of my mail didn't go where it should have because I don't know how to work email. It was suggested that I summarize here. The issue is with sample when the first argument is length 1. Current behaviour is: > sample('a', 1) Error in sample(x, size, replace, prob) : invalid first argument > sample(3+0i, 1) Error in x >= 1 : illegal comparison
2010 Jul 22
2
using "sample()" for a vector of length 1
Hi All, I'm trying to use the "sample" function within a loop where the vector being sampled from (the first argument in the function) will vary in length and composition. When the vector is down in size to containing only one element, I run into the "undesired behaviour" acknowledged in the ?sample help file. I don't want sample(10,1) to return a number from
2012 May 17
2
Complex sort problem
Dear List, Is there a way I can sort a sample based on a sort index constructed from the data from which the sample is taken? Basically, I need to take 'many' samples from the same source data and sort them. This can be very time consuming for long vectors. Is there any way I can sort the data only once initially, and use that sort order for the samples? I believe that idea is what is