strengejacke / sjstats

Effect size measures and significance tests
https://strengejacke.github.io/sjstats
189 stars 21 forks source link

ERROR could not find function "std_beta", "rmse" etc after ok installation #73

Closed Camzcamz closed 5 years ago

Camzcamz commented 5 years ago

Hi,

I cannot seem to be able to use your package functions. I have the r Version 3.5.2, the package version 0.17.3, and I am trying to apply std_beta to my LMEM. For: TotalGrayVol_Int_Age <-lmer(TotalGrayVol~ DX_GROUP Age SEX + (1|SITE_ID2), Abide_Clean_Seg) std_beta(TotalGrayVol_Int_Age) I get : Error in std_beta(TotalGrayVol_Int_Age) : could not find function "std_beta"

Thanks! Underneath is what I obtained when installing:

> install.packages("sjstats")
also installing the dependencies ‘generics’, ‘estimability’, ‘insight’, ‘broom’, ‘emmeans’, ‘modelr’, ‘pwr’, ‘sjlabelled’, ‘sjmisc’

  There is a binary version available but the source version is later:
       binary source needs_compilation
sjmisc  2.7.7  2.7.8             FALSE

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/generics_0.0.2.tgz'
Content type 'application/x-gzip' length 61952 bytes (60 KB)
==================================================
downloaded 60 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/estimability_1.3.tgz'
Content type 'application/x-gzip' length 36051 bytes (35 KB)
==================================================
downloaded 35 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/insight_0.1.2.tgz'
Content type 'application/x-gzip' length 290878 bytes (284 KB)
==================================================
downloaded 284 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/broom_0.5.1.tgz'
Content type 'application/x-gzip' length 1992593 bytes (1.9 MB)
==================================================
downloaded 1.9 MB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/emmeans_1.3.3.tgz'
Content type 'application/x-gzip' length 1030552 bytes (1006 KB)
==================================================
downloaded 1006 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/modelr_0.1.4.tgz'
Content type 'application/x-gzip' length 198035 bytes (193 KB)
==================================================
downloaded 193 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/pwr_1.2-2.tgz'
Content type 'application/x-gzip' length 168352 bytes (164 KB)
==================================================
downloaded 164 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/sjlabelled_1.0.17.tgz'
Content type 'application/x-gzip' length 279567 bytes (273 KB)
==================================================
downloaded 273 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/sjstats_0.17.3.tgz'
Content type 'application/x-gzip' length 804239 bytes (785 KB)
==================================================
downloaded 785 KB

The downloaded binary packages are in
    /var/folders/8j/3_9wtkm579l01lrnshpzs4hc0000gn/T//RtmpeFhWxv/downloaded_packages
installing the source package ‘sjmisc’

trying URL 'https://cran.rstudio.com/src/contrib/sjmisc_2.7.8.tar.gz'
Content type 'application/x-gzip' length 224638 bytes (219 KB)
==================================================
downloaded 219 KB

* installing *source* package ‘sjmisc’ ...
** package ‘sjmisc’ successfully unpacked and MD5 sums checked
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (sjmisc)

The downloaded source packages are in
    ‘/private/var/folders/8j/3_9wtkm579l01lrnshpzs4hc0000gn/T/RtmpeFhWxv/downloaded_packages’
strengejacke commented 5 years ago

Can you please post your sessionInfo()?

Camzcamz commented 5 years ago

R version 3.5.2 (2018-12-20)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] lmerTest_3.1-0 lme4_1.1-20    Matrix_1.2-15 

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0        rstudioapi_0.9.0  magrittr_1.5      splines_3.5.2     MASS_7.3-51.1     mnormt_1.5-5     
 [7] tidyselect_0.2.5  munsell_0.5.0     pbivnorm_0.6.0    colorspace_1.4-0  lattice_0.20-38   R6_2.4.0         
[13] rlang_0.3.1       minqa_1.2.4       plyr_1.8.4        dplyr_0.8.0.1     tools_3.5.2       grid_3.5.2       
[19] gtable_0.2.0      nlme_3.1-137      assertthat_0.2.0  lazyeval_0.2.1    tibble_2.0.1      numDeriv_2016.8-1
[25] lavaan_0.6-3      crayon_1.3.4      purrr_0.3.0       nloptr_1.2.1      ggplot2_3.1.0     glue_1.3.0       
[31] compiler_3.5.2    pillar_1.3.1      scales_1.0.0      stats4_3.5.2      pkgconfig_2.0.2  
Camzcamz commented 5 years ago

??std_beta works but I get this for ?std_beta. Thank you!


> ?std_beta
No documentation for ‘std_beta’ in specified packages and libraries:
you could try ‘??std_beta’
strengejacke commented 5 years ago

It looks like you have not loaded the library!

Camzcamz commented 5 years ago

How embarrassing! You are right. Seems like a sign I should stop for the day. I appreciate your patience.

strengejacke commented 5 years ago

You're welcome! Glad I could help.