Tracking down error [Power / Sample Size]

posted by Alyssa – Malaysia, 2020-05-15 07:08 (1881 d 21:30 ago) – Posting: # 21438
Views: 11,323

Hi Helmut and d_labes,

Sorry for late reply because i din't receive email notification i thought no one has reply to my query yet until i login just now.

I followed your instructions and yeah...finally i could get the sample size estimation !!!! so happy!:rotfl:

I dint get to try the below command because i have updated the programme to R 4.0.0

res     <- data.frame(design = rep(designs, each = length(target)),
                      target = target, n = NA, power = NA,
                      stringsAsFactors = FALSE)


When i run devtools::session_info(), this is what i get:-

- Session info ---------------------------------------------------------------
 setting  value                       
 version  R version 4.0.0 (2020-04-24)
 os       Windows 10 x64             
 system   x86_64, mingw32             
 ui       Rgui                       
 language (EN)                       
 collate  English_Malaysia.1252       
 ctype    English_Malaysia.1252       
 tz       Asia/Kuala_Lumpur           
 date     2020-05-15                 

- Packages -------------------------------------------------------------------
 package       * version date       lib source       
 assertthat      0.2.1   2019-03-21 [1] CRAN (R 4.0.0)
 backports       1.1.6   2020-04-05 [1] CRAN (R 4.0.0)
 callr           3.4.3   2020-03-28 [1] CRAN (R 4.0.0)
 cli             2.0.2   2020-02-28 [1] CRAN (R 4.0.0)
 crayon          1.3.4   2017-09-16 [1] CRAN (R 4.0.0)
 cubature        2.0.4   2019-12-04 [1] CRAN (R 4.0.0)
 desc            1.2.0   2018-05-01 [1] CRAN (R 4.0.0)
 devtools        2.3.0   2020-04-10 [1] CRAN (R 4.0.0)
 digest          0.6.25  2020-02-23 [1] CRAN (R 4.0.0)
 ellipsis        0.3.0   2019-09-20 [1] CRAN (R 4.0.0)
 fansi           0.4.1   2020-01-08 [1] CRAN (R 4.0.0)
 fs              1.4.1   2020-04-04 [1] CRAN (R 4.0.0)
 glue            1.4.0   2020-04-03 [1] CRAN (R 4.0.0)
 htmltools       0.4.0   2019-10-04 [1] CRAN (R 4.0.0)
 knitr           1.28    2020-02-06 [1] CRAN (R 4.0.0)
 magrittr        1.5     2014-11-22 [1] CRAN (R 4.0.0)
 memoise         1.1.0   2017-04-21 [1] CRAN (R 4.0.0)
 mvtnorm         1.1-0   2020-02-24 [1] CRAN (R 4.0.0)
 pkgbuild        1.0.8   2020-05-07 [1] CRAN (R 4.0.0)
 pkgload         1.0.2   2018-10-29 [1] CRAN (R 4.0.0)
 PowerTOST     * 1.4-9   2019-12-19 [1] CRAN (R 4.0.0)
 prettyunits     1.1.1   2020-01-24 [1] CRAN (R 4.0.0)
 processx        3.4.2   2020-02-09 [1] CRAN (R 4.0.0)
 ps              1.3.3   2020-05-08 [1] CRAN (R 4.0.0)
 R6              2.4.1   2019-11-12 [1] CRAN (R 4.0.0)
 Rcpp            1.0.4.6 2020-04-09 [1] CRAN (R 4.0.0)
 remotes         2.1.1   2020-02-15 [1] CRAN (R 4.0.0)
 rlang           0.4.6   2020-05-02 [1] CRAN (R 4.0.0)
 rprojroot       1.3-2   2018-01-03 [1] CRAN (R 4.0.0)
 sessioninfo     1.1.1   2018-11-05 [1] CRAN (R 4.0.0)
 TeachingDemos   2.12    2020-04-07 [1] CRAN (R 4.0.0)
 testthat        2.3.2   2020-03-02 [1] CRAN (R 4.0.0)
 tufte           0.6     2020-05-08 [1] CRAN (R 4.0.0)
 usethis         1.6.1   2020-04-29 [1] CRAN (R 4.0.0)
 withr           2.2.0   2020-04-20 [1] CRAN (R 4.0.0)
 xfun            0.13    2020-04-13 [1] CRAN (R 4.0.0)

[2] C:/Program Files/R/R-4.0.0/library


Thank you and Cheers~~ :-D:party:

Complete thread:

UA Flag
Activity
 Admin contact
23,428 posts in 4,929 threads, 1,687 registered users;
75 visitors (0 registered, 75 guests [including 21 identified bots]).
Forum time: 04:38 CEST (Europe/Vienna)

To know that we know what we know,
and to know that we do not know what we do not know,
that is true knowledge.    Nicolaus Copernicus

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5