* using log directory 'd:/Rcompile/CRANpkg/local/2.14/clusterPower.Rcheck' * using R version 2.14.2 (2012-02-29) * using platform: i386-pc-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'clusterPower/DESCRIPTION' ... OK * this is package 'clusterPower' version '0.4' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking whether package 'clusterPower' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in 'clusterPower-Ex.R' failed The error most likely occurred in: > ### Name: power.sim.normal > ### Title: Power simulations for cluster-randomized crossover study > ### designs. > ### Aliases: power.sim.normal power.sim.binomial power.sim.poisson > ### make.base.data > ### Keywords: permutation power simulation > > ### ** Examples > > > power.sim.normal(n.sim=10, effect.size=5, alpha=.05, n.clusters=2, n.periods=2, + cluster.size=20, btw.clust.var=5, ICC=1/20, period.effect=2, + estimation.function=fixed.effect, verbose=TRUE, period.var=0) starting simulation :: 2012-11-30 03:14:10 iteration 10 :: 2012-11-30 03:14:10 power = 0.5 $results dataset beta.est beta.cil beta.cih reject.null pval.permute [1,] 1 4.436582 0.5929506 8.280214 1 NA [2,] 2 8.237780 4.0802880 12.395272 1 NA [3,] 3 2.698571 -1.7345482 7.131690 0 NA [4,] 4 3.937354 -0.3563382 8.231046 0 NA [5,] 5 3.770644 -0.4513178 7.992605 0 NA [6,] 6 5.880313 0.9790246 10.781602 1 NA [7,] 7 7.948637 3.9017223 11.995552 1 NA [8,] 8 4.592270 0.3446324 8.839907 1 NA [9,] 9 3.192669 -0.5619033 6.947242 0 NA [10,] 10 3.317295 -1.1895736 7.824164 0 NA $power [1] 0.5 $permute.power [1] NA $sample.data id clust per trt mean.y y at.risk.time 1 1 1 1 1 6.519897 -10.7947888 1 2 2 1 1 1 6.519897 4.0208944 1 3 3 1 1 1 6.519897 5.1694728 1 4 4 1 1 1 6.519897 11.9555381 1 5 5 1 1 1 6.519897 17.4591758 1 6 6 1 1 1 6.519897 -3.0528895 1 7 7 1 1 1 6.519897 9.7061786 1 8 8 1 1 1 6.519897 10.8847712 1 9 9 1 1 1 6.519897 18.0574129 1 10 10 1 1 1 6.519897 5.6561665 1 11 11 1 1 1 6.519897 17.6994498 1 12 12 1 1 1 6.519897 7.3660417 1 13 13 1 1 1 6.519897 3.6445440 1 14 14 1 1 1 6.519897 11.5135012 1 15 15 1 1 1 6.519897 9.2812971 1 16 16 1 1 1 6.519897 10.2679659 1 17 17 1 1 1 6.519897 16.3135186 1 18 18 1 1 1 6.519897 3.7326476 1 19 19 1 1 1 6.519897 4.2065943 1 20 20 1 1 1 6.519897 4.5347252 1 21 21 1 2 0 1.519897 11.9730615 1 22 22 1 2 0 1.519897 20.5288539 1 23 23 1 2 0 1.519897 10.9202328 1 24 24 1 2 0 1.519897 11.6410134 1 25 25 1 2 0 1.519897 18.7607448 1 26 26 1 2 0 1.519897 -4.0518590 1 27 27 1 2 0 1.519897 -12.8106476 1 28 28 1 2 0 1.519897 -9.3026160 1 29 29 1 2 0 1.519897 3.9995149 1 30 30 1 2 0 1.519897 1.7474332 1 31 31 1 2 0 1.519897 -24.9516679 1 32 32 1 2 0 1.519897 13.0726680 1 33 33 1 2 0 1.519897 -0.6220113 1 34 34 1 2 0 1.519897 0.9675196 1 35 35 1 2 0 1.519897 5.4825980 1 36 36 1 2 0 1.519897 -11.2428470 1 37 37 1 2 0 1.519897 -5.3680773 1 38 38 1 2 0 1.519897 11.5970269 1 39 39 1 2 0 1.519897 20.7479928 1 40 40 1 2 0 1.519897 8.2210629 1 41 41 2 1 0 3.282874 10.4783721 1 42 42 2 1 0 3.282874 -13.3672849 1 43 43 2 1 0 3.282874 13.5425424 1 44 44 2 1 0 3.282874 14.2308544 1 45 45 2 1 0 3.282874 -0.1732616 1 46 46 2 1 0 3.282874 5.1175991 1 47 47 2 1 0 3.282874 12.2869626 1 48 48 2 1 0 3.282874 24.2648062 1 49 49 2 1 0 3.282874 -7.5335274 1 50 50 2 1 0 3.282874 13.3172787 1 51 51 2 1 0 3.282874 16.7057179 1 52 52 2 1 0 3.282874 12.1993489 1 53 53 2 1 0 3.282874 6.1447610 1 54 54 2 1 0 3.282874 1.8039086 1 55 55 2 1 0 3.282874 4.8900367 1 56 56 2 1 0 3.282874 11.7487193 1 57 57 2 1 0 3.282874 -7.2245067 1 58 58 2 1 0 3.282874 -8.6309446 1 59 59 2 1 0 3.282874 -3.6514314 1 60 60 2 1 0 3.282874 -10.5968700 1 61 61 2 2 1 8.282874 -7.9878829 1 62 62 2 2 1 8.282874 21.7260047 1 63 63 2 2 1 8.282874 -0.6810053 1 64 64 2 2 1 8.282874 3.3657131 1 65 65 2 2 1 8.282874 -2.7771239 1 66 66 2 2 1 8.282874 13.2807673 1 67 67 2 2 1 8.282874 13.4290718 1 68 68 2 2 1 8.282874 19.8644761 1 69 69 2 2 1 8.282874 3.7795004 1 70 70 2 2 1 8.282874 20.3793209 1 71 71 2 2 1 8.282874 9.6183946 1 72 72 2 2 1 8.282874 -4.3845011 1 73 73 2 2 1 8.282874 19.5054199 1 74 74 2 2 1 8.282874 23.0341351 1 75 75 2 2 1 8.282874 16.1011467 1 76 76 2 2 1 8.282874 4.0865187 1 77 77 2 2 1 8.282874 -4.8236498 1 78 78 2 2 1 8.282874 8.6478139 1 79 79 2 2 1 8.282874 -4.8335998 1 80 80 2 2 1 8.282874 -9.3978533 1 > > power.sim.binomial(n.sim=10, effect.size=log(.75), alpha=.05, n.clusters=20, n.periods=2, + cluster.size=50, btw.clust.var=.2, period.effect=logit(.2), + estimation.function=random.effect, verbose=TRUE, period.var=0) starting simulation :: 2012-11-30 03:14:10 Error in estimation.function(dat = sim.dat, incl.period.effect = incl.period.effect, : trying to get slot "coefs" from an object (class "summaryDefault") that is not an S4 object Calls: power.sim.binomial -> estimation.function Execution halted