* using log directory '/CRANPkg/check/sampling.Rcheck' * using R version 2.1.1, 2005-06-20 * checking for file 'sampling/DESCRIPTION' ... OK * this is package 'sampling' version '0.1' * checking if this is a source package ... OK * checking whether package 'sampling' can be installed ... OK * checking package directory ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking DESCRIPTION meta-information ... OK * checking package dependencies ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for syntax errors ... OK * checking R files for library.dynam ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking Rd files ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * creating sampling-Ex.R ... OK * checking examples ... ERROR Running examples in sampling-Ex.R failed. The error most likely occurred in: > ### * balancedcluster > > flush(stderr()); flush(stdout()) > > ### Name: balancedcluster > ### Title: Balanced cluster > ### Aliases: balancedcluster > ### Keywords: survey > > ### ** Examples > > ############ > ## Example 1 > ############ > # definition of the clusters (3 clusters) > cluster=c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3) > # Matrix of balancing variables > X=cbind(c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)) > # Selection of 2 clusters > s=balancedcluster(X,2,cluster,2,TRUE) SELECTION OF A SAMPLE OF CLUSTERS BEGINNING OF THE FLIGHT PHASE The matrix of balanced variable has 2 variables and 3 units The size of the inclusion probability vector is 3 The sum of the inclusion probability vector is 2 The inclusion probability vector has 3 non-integer elements Step 1 NO LANDING PHASE QUALITY OF BALANCING TOTALS HorvitzThompson_estimators Relative_deviation pik 2 2 0 2 120 120 0 > # The sample of clusters with the inclusion probabilities of the clusters > s [,1] [,2] [1,] 1 0.6666667 [2,] 1 0.6666667 [3,] 1 0.6666667 [4,] 1 0.6666667 [5,] 1 0.6666667 [6,] 0 0.6666667 [7,] 0 0.6666667 [8,] 0 0.6666667 [9,] 0 0.6666667 [10,] 0 0.6666667 [11,] 1 0.6666667 [12,] 1 0.6666667 [13,] 1 0.6666667 [14,] 1 0.6666667 [15,] 1 0.6666667 > ############ > ## Example 2 > ############ > data(MU284) > X=cbind(MU284$P75,MU284$CS82,MU284$SS82,MU284$S82,MU284$ME84) > b=balancedcluster(X,10,MU284$CL,1,TRUE) SELECTION OF A SAMPLE OF CLUSTERS BEGINNING OF THE FLIGHT PHASE The matrix of balanced variable has 6 variables and 50 units The size of the inclusion probability vector is 50 The sum of the inclusion probability vector is 10 The inclusion probability vector has 50 non-integer elements Step 1 BEGINNING OF THE LANDING PHASE At the end of the flight phase, there remain 6 non integer probabilities The sum of these probabilities is 3 This sum is integer The linear program will consider 20 possible samples Error in landingcube(X, pikstar, pik, comment) : couldn't find function "lp" Execution halted