similar to: package sampling, function strata

Displaying 20 results from an estimated 200 matches similar to: "package sampling, function strata"

2004 Jun 01
1
converting text coordinates to decimal degrees
I receive GPS readings in a text string such as "0121.6723S 03643.6893E" and need the coordinates as decimal degrees in two separate variables: "-1.361205" and "36.728155". How do I do this in R? mikkel
2009 Oct 01
5
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 Nov 03
2
reshaping pairs of columns
Given a data frame consisting of a pointID and 12 pairs of (lat, long) variables, with names latA, longA, latB, longB, ... latL, longL, I want to reshape it into a data frame with the structure point source lat long 1 A ... ... 1 B ... ... I've looked at reshape and plyr, but can't figure out how to do this. Details of my data frame are below
2013 Apr 26
1
Stratified Random Sampling Proportional to Size
Hello R Experts, I kindly request your assistance on figuring out how to get a stratified random sampling proportional to 100. Below is my r code showing what I did and the error I'm getting with sampling::strata # FIRST I summarized count of records by the two variables I want to use as strata Library(RODBC) library(sqldf) library(sampling) #After establishing connection I query the data
2010 Feb 05
2
Random number quality
Hello, I'm running R 2.10.1 on Windows Vista. I'm selecting a random sample of several hundred items out of a larger population of several thousand. I realize there is srswor() in package sampling for exactly this purpose, but as far as I can tell it uses the native PRNG which may or may not be random enough. Instead I used the random package which pulls random numbers from random.org,
2010 Dec 11
2
package sampling
Hi R users. I have a problem with function strata in sampling packages. > st0 = strata(dom, stratanames="stratas", size=sample.size, method="systematic",pik, FALSE) Error in sort.list(y) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list? In previous version of R 2.9.1 and previous version of package sampling this code worked
2007 Mar 28
1
(no subject)
Hallo, I'm trying to sample a matrix with simple random sampling without replacement but seem to have a problem with the matrix length. Both sample() and srswor() use length() which returns the number of columns in matrix. This means that to function it seems that the sample size exceeds the matrix length. I need to sample the whole matrix for there are auxiliary variables I need for further
2008 Aug 25
1
How to run a model 1000 times, while saving coefficients each time?
Hello, We have written a program (below) to model the effect of a covariate on observed values of a response variable (using only 80% of the rows in our dataframe) and then use that model to calculate predicted values for the remaining 20% of the rows. Then, we compare the observed vs. predicted values using a linear model and inspect that model's coefficients and its R2 value. We wish
2009 Aug 15
1
Peculiar difference between two Samba servers
I have two Samba servers acting with Server role: ROLE_DOMAIN_MEMBER running Samba 3.2.5. Both have shares in their smb.conf, both are joined to Active Directory, and are using pam, nis, etc. so that users can authenticate against them (without having to re enter their passwords for each share) and see all permitted files. Clients are a mixture Macs running OS X 10.5 and Windows clients. Windows
2013 Jun 02
1
[LLVMdev] Language Construction and IDE Kit
Hi, Is to possible to have a language construction and IDE integration kit for LLVM so that LLVM / Clang can be used for Meta Programming and defining new languages and DSLs. The definition of grammar, parsing, debugging, lint checking and IDE integration should be seamless and easy to use for a novice. Suminda -- Suminda Sirinath Salpitikorala Dharmasena, B.Sc. Comp. & I.S. (Hon.) Lond.,
2013 Sep 07
2
[LLVMdev] IEEE 754-2008 | ISO/IEC TR 18037
Hi, Does LLVM support decimal precision numbers supported? Also does it have Fixed point arithmetic? S -- Suminda Sirinath Salpitikorala Dharmasena, B.Sc. Comp. & I.S. (Hon.) Lond., P.G.Dip. Ind. Maths. J'Pura, MIEEE, MACM, CEO Sakrīō! ▣ *Address*: 6G • 1st Lane • Pagoda Road • Nugegoda 10250 • Sri Lanka. ▣ *Mobile* : +94-(0)711007945 ▣ *Tele*: +94-(0)11-5 864614 / 5 875614 / 2 825908 ▣
2011 Sep 28
2
apply lm function to dataset split by two variables
Dear all, I am not fluent in R and am struggling to 1) apply a lm to a weight-size dataset, thus the model has to run separately for each species, each year; 2) extract coefs, r-squared, n, etc. The data look like this: year sps cm w 2009 50 16 22 2009 50 17 42 2009 50 18 45 2009 51 15 45 2009 51 16 53 2009 51 17 73 2010 50 15 22 2010 50 16 41 2010 50 16 21 2010
2008 May 30
2
Mapping of Unix groups to Samba user permissions
I ran into a problem today which surprised me, and after two hours of reading and testing I am more confused than ever, so I feel the need for a sanity check. It would be good to have a clear and authoritative article about this somewhere; I thought it would be in either "Using Samba" or in the HOWTO, but I don't see it there. I am using Samba in several installations in homes and
2005 May 10
3
Unsupported Kernel for X86_64 and i386
All, There have been many requests for added kernel features that the upstream provider left out of the standard kernel. (ReiserFS, Video4Linux, Firewire support, XFS, NTFS, JFS, etc.). We want the main release CDs to contain a standard kernel for compatibility and stability reasons. CentOS is created as a clone, and it needs to be as close as possible to the upstream distro. That being said,
2009 Apr 28
1
Random Sample with Unique function
Dear R-users I have a dataset of 243 lines with replicate information for 20 different individuals (ID). I would like to randomly sample this dataset 100 times with a selection 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"
2007 May 10
0
kernel: peth0: received packet with own address as source address
Hello, running xen 3.0.4_1 I find the following messages in /var/log/messages: kernel: peth0: received packet with own address as source address Is this something to worry about? The tcpdump shows the following pakets during that time: 14:58:05.546043 fe:ff:ff:ff:ff:ff (oui Unknown) > 09:00:2b:00:00:0f (oui Unknown), ethertype LAT (0x6004), length 81: 0x0000: 2808 0505 0502 131f
2013 May 23
0
[LLVMdev] More User Friendly Tool Chain perhaps Through a DSL
Hi, LLVM is very useful but I am wondering if there is an interest in creating a full tool chain for language definition and compilation with IDE integration support (to be used by IDE implimenter) using a DSL perhaps using insights from projects like xtext (http://www.eclipse.org/Xtext/) and MPS (http://www.jetbrains.com/mps/). Perhaps you could use MPS code base to be able to have it translated
2013 Jun 03
0
[LLVMdev] Front End & Language Development Kit
Hi, Is it possible to develop a LLVM front end development kit which support easy language definition and creation with IDE integration like Eclipse Xtext, JetBrains MPS. All the needed C++ integration code should be easily created through the kit. Some other similar projects from which you can get ideas are DMS Software Reengineering Toolkit, Rascal MPL, TXL, ROSE, Coccinelle, etc. where some
2013 Jun 22
1
[LLVMdev] LLVM Frontend Construction / Developer Kit
Hi, LLVM is very impressive in the back end but to allow wider adaptation it will need a user friendly front end developer kit with parsers and lexers with easy grammar definition. There are piecemeal solutions out there but best is to have one unified simple solution with IDE integration plugins. Suminda -- Suminda Sirinath Salpitikorala Dharmasena, B.Sc. Comp. & I.S. (Hon.) Lond., P.G.Dip.
2013 Sep 09
0
[LLVMdev] IEEE 754-2008 | ISO/IEC TR 18037
LLVM does not support IEEE decimal-floating point. If by “fixed point arithmetic” you are asking about associating a scale factor with a variable/value, and doing the correct scaling for arbitrary arithmetic… LLVM doesn’t do that either. It’s a rare IR that even has the concept. The OpenVMS GEM compilers supported it (along with other special features for COBOL), but I’m not aware of any