# search for: samples

Displaying 20 results from an estimated 6113 matches for "samples".

Did you mean: sample
2017 Aug 05
1
Nested for loop
Hi! Thanks for taking the time to read this. The code below creates a graph that takes 100 samples that are between 5% and 15% of the population (400). What I'd like to do, however, is add two other sections to the graph. It would look something like this: from 1-100 samples take 100 samples that are between 5% and 15% of the population (400). From 101-200 take 100 samples that are between...
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
1
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, at 9:21 AM, Kirsten Morehouse <kmoreho1 at swarthmore.edu> wrote: > > Hi! Thanks for taking the time to read this. > > The...
2017 Aug 06
1
Nested for loop
Hi Ben, That's exactly right! Except for each set it's the sample population that is 400, 800 or 300. I want to take 3 samples, each of 100, where only the population differs. I can do this separately, but I'm having trouble putting them all on the same graph. I'd like to have sample on the x axis (1-300) and estimate on the y axis. I want to show how population affects the estimates. Does this make more sense?...
2008 May 15
4
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
Hi Caitlin and Ben, Thanks for your responses! My issue is that I'd like to create one continuous line, rather than 3 lines overlayed. The code I've attached works for a population of 400 and samples 100 times. I'd like to extend this to 300 samples and 3 populations. So, the x-axis would range from 0-300 samples. What I'm having trouble with is finding a way to change the population mid-way through the function. I want samples 1-100 to be taken from a population of 400, samples 101-20...
2017 Aug 19
1
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 of the right size. set.seed(1)...
2017 Aug 19
1
bootstrap subject resampling: resampled subject codes surface as list/vector indices
...g 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 sure I have a set of the right size. > >...
2007 Jun 03
8
getting t.test to work with apply()
Hi, I''m interested in using apply() with t.test() on a data.frame. Specifically, I''d like to use apply() to do the following: t.test(raw.sample[1,alive],raw.sample[1,dead]) t.test(raw.sample[2,alive],raw.sample[2,dead]) t.test(raw.sample[3,alive],raw.sample[3,dead]) etc. I tried the following, apply(raw.sample,1,function(x) t.test(raw.sample[,alive],raw.sample[,dead])) but
2011 May 03
8
audiohook.c: Failed to get 160 samples from write factory
Hello, I see a lot of these messages in the debug log : /[May 3 15:47:09] DEBUG[19081] audiohook.c: Failed to get 160 samples from write factory 0xae17e18 [May 3 15:47:09] DEBUG[19081] audiohook.c: Failed to get 160 samples from write factory 0xae17e18 [May 3 15:47:09] DEBUG[19081] audiohook.c: Read factory 0xae173e0 and write factory 0xae17e18 both fail to provide 160 samples [May 3 15:47:09] DEBUG[19081] audiohook...
2012 Feb 12
5
Sample function in R
Hi, Can anyone help me with the sample () in R? If I sample from x, I should get one integer. Can anyone tell me what''s wrong here? > x =1:12 > sample(x) [1] 6.5 And, I cannot get the sample with size = 2 > sample(x, size = 2) Error in sample(x, size = 2) : unused argument(s) (size = 2) > sample(x, 2) [1] 54.16667 Thank you in advance [[alternative HTML version deleted]]
2007 Sep 21
3
Estimate correlation with bootstrap
Hello. I would like to estimate the correlation coefficient from two samples with Bootstrapping using the R-function sample(). The problem is, that I have to sample pairwise. For example if I have got two time series and I draw from the first series the value from 1912 I need the value from 1912 from the second sample, too. Example: Imagine that a and b are two time seri...
2008 Aug 28
2
sample consecutive integers efficiently
Hi all, I have some rough code to sample consecutive integers with length according to a vector of lengths #sample space (representing positions) pos<-c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) #sample lengths lengths<-c(2,3,2) From these two vectors I need a vector of sampled positions. the sampling is without replacement, making things tough as the sampled integers need
2009 Oct 01
13
Re: How to use Subpopulation data?
Dear Helpers   I have a sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.   H <- matrix(rnorm(100, mean=50000, sd=5000)) sampleframe=data.frame(type=c(rep("H",100)),value=c(H)) sampleframe   str=strata(sampleframe,c("type"),size=c(20,), method="srswor")
2009 Apr 28
3
Random Sample with Unique function
...tion of unique IDs in each sample. First to create a random sample I have; cc<-read.table(blah.blah.blah) names(cc) [1] "CALL" "CONTEXT" "ORDER" "ID" "STATUS" s1<-cc[sample(1:243,20,replace=TRUE),] This code samples 20 rows from the dataset but can anyone help me write the code to request unique(ID) in this sample? Thank you so much for your time and help. Krystyna Golabek _________________________________________________________________ [[alternative HTML version deleted]] ___________________________...
2012 Mar 07
10
Sampling problems
Hi, I need to sample randomly my dataset for 1000 times. The sample need to be the 80%. I know how to do that, my problem is that not only I need the 80%, but I also need the corresponding 20% each time. Is there any way to do that? Alternatively, I was thinking to something like setdiff () function to compare my 80% sample to the original dataset and obtain the corresponding 20%, unfortunately
2007 Oct 29
0
2 commits - libswfdec/swfdec_audio_event.c test/sound
libswfdec/swfdec_audio_event.c | 3 + test/sound/Makefile.am | 7 ++++ test/sound/crash-0.5.3-no-samples.c | 57 ++++++++++++++++++++++++++++++++++ test/sound/crash-0.5.3-no-samples.swf |binary 4 files changed, 67 insertions(+) New commits: commit 835f7dd6a8a7ea739b437e7721506755fa989ca7 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Mon Oct 29 23:44:07 2007 +0200 Add...
2006 Nov 04
0
traits-0.9.2 - better living through metaprogramming
...#=> ''forty-two'' conf.username ''zaphod'' p conf #=> {"username"=>"zaphod", "port"=>42, "host"=>"forty-two"} AUTHOR ara [dot] t [dot] howard [at] noaa [dot] gov SAMPLES <========< sample/a.rb >========> ~ > cat sample/a.rb require ''traits'' # # defining a trait is like attr_accessor in the simple case # class C trait :t end o = C::new o.t = 42 p o.t # #...
2012 Sep 27
3
Generating an autocorrelated binary variable
Hi R-fellows, I am trying to simulate a multivariate correlated sample via the Gaussian copula method. One variable is a binary variable, that should be autocorrelated. The autocorrelation should be rho = 0.2. Furthermore, the overall probability to get either outcome of the binary variable should be 0.5. Below you can see the R code (I use for simplicity a diagonal matrix in rmvnorm even if it
2006 Nov 04
0
traits-0.10.0
...e/c.rb) 0.1.0 completely reworked impl so NO parsing of inspect strings is required - it''s all straight methods (albeit quite confusing ones) now. the interface is unchanged. 0.0.0 initial version AUTHOR ara [dot] t [dot] howard [at] noaa [dot] gov SAMPLES <========< sample/a.rb >========> ~ > cat sample/a.rb require ''traits'' # # defining a trait is like attr_accessor in the simple case # class C trait :t end o = C::new o.t = 42 p o.t # #...