Science Score: 31.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: suzannealexander
  • Language: R
  • Default Branch: main
  • Size: 14.6 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme Citation

README.md

BMI Alexander Final

Final project for BMI 510

Installation

To install the package, you can use the githubinstall package. Run the following command in your R console:

R install.packages("remotes") remotes::install_github("suzannealexander/BMIAlexanderFinal") library(BMIAlexanderFinal)

Usage

The package offers a range of functions. Here's a list of available functions along with a brief description:

  • logLikBernoulli(data): This function takes in a vector of binary values to calculate parameter p
  • survCurv(status, time): This function takes in numercial vectors status and time to calculate the survival curve S(t), returning a plot of the survival curve
  • unscale(x): This function reverses the transformations of scale() for a vector
  • pcApprox(x, npc): This function returns an approximation to the data x based on the specified number of principal components (npc).
  • standardizeNames(data): This function standardizes the variable names in a tibble data to "small camel case".
  • minimumN(x1, x2): This function takes either one or two samples of preliminary data (x1 or x2) and return the minimum sample size needed for a t-test under conditions: (1) The function should calculate the minimum sample size required for a t-test under the null hypothesis (2) It should determine the sample size needed to achieve 80 significance level of alpha = 0.05
  • downloadRedcapReport(redcapTokenName,redcapUrl,redcapReportId): This function reads in an API token from the user's .Renviron file, a Redcap url and a Redcap report id, downloading the report and returning the contents as a tibble

After installing the package, you can explore detailed information about each function using the R help system. Type ?<functionName> in your R console to access comprehensive documentation and usage examples.

Dependencies

In order to use this package, please install

  • pwr
  • dplyr
  • janitor

You can install them using the install.packages() function if these packages aren't installed already.

Owner

  • Login: suzannealexander
  • Kind: user

Citation (Citations.md)

##### Below are the resources I referred to for assistance in completing this assignment
1. Klopotek, R. (2017). Package Development in R. Retrieved Apr 22 2024, from https://rklopotek.blog.uksw.edu.pl/files/2017/09/package-development.pdf

2. Piech, C., & Sahami, M. (2017). Parameter Estimation. Stanford University. Retrieved Apr 22 2024, from https://web.stanford.edu/class/archive/cs/cs109/cs109.1192/reader/11%20Parameter%20Estimation.pdf

3. R Core Team. (2019). seq {base}: Generate Regular Sequences. In R Documentation. Retrieved Apr 22 2024, from https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/seq

4. DigitalOcean. (n.d.). Which Function in R. DigitalOcean. Retrieved Apr 22 2024, from https://www.digitalocean.com/community/tutorials/which-function-in-r

5. Phillips, N. D. (n.d.). Sorting Data. In YaRrr! The Pirate's Guide to R. Retrieved Apr 23 2024, from https://bookdown.org/ndphillips/YaRrr/order-sorting-data.html

6. DigitalOcean. (n.d.). Get Number of Rows and Columns in R. DigitalOcean. Retrieved Apr 23 2024, from https://www.digitalocean.com/community/tutorials/get-number-of-rows-and-columns-in-r

7. Statology. (n.d.). rep() Function in R. Retrieved Apr 23 2024, from https://www.statology.org/rep-function-in-r/

8. Boston University School of Public Health. (n.d.). Survival Analysis. Retrieved Apr 23 2024, from https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_survival/BS704_Survival_print.html

9. DigitalOcean. (n.d.). Plot Function in R. DigitalOcean. Retrieved Apr 23 2024, from https://www.digitalocean.com/community/tutorials/plot-function-in-

10. GeeksforGeeks. (n.d.). Transform the Scaled Matrix to Its Original Form in R Programming using Matrix Computations. Retrieved Apr 24 2024, from https://www.geeksforgeeks.org/transform-the-scaled-matrix-to-its-original-form-in-r-programming-using-matrix-computations/

11. R-bloggers. (2021, May 11). Principal Component Analysis (PCA) in R. R-bloggers. Retrieved Apr 24 2024, from https://www.r-bloggers.com/2021/05/principal-component-analysis-pca-in-r/

12. DataCamp. (n.d.). PCA Analysis in R. DataCamp. Retrieved Apr 24 2024, from https://www.datacamp.com/tutorial/pca-analysis-r

13. R Development Core Team. (n.d.). Extract: Data Extraction. In lessR Package Vignettes. Retrieved Apr 24 2024, from https://cran.r-project.org/web/packages/lessR/vignettes/Extract.html

14. Hwang, F. (n.d.). Principal Components Analysis using R. Retrieved Apr 24 2024, from https://francish.net/post/principal-components-analysis-using-r/

15. Firke, S., & Grolemund, G. (2021). make_clean_names: Create clean versions of variable names. In janitor Package Documentation (Version 2.2.0). Retrieved Apr 25 2024, from https://www.rdocumentation.org/packages/janitor/versions/2.2.0/topics/make_clean_names

16. Pedersen, T. L., & Robinson, D. (2021). rename_with: Rename columns using a function. In tidytable Package Documentation (Version 0.9.2). Retrieved Apr 25 2024, from https://www.rdocumentation.org/packages/tidytable/versions/0.9.2/topics/rename_with

17. R Development Core Team. (n.d.). pwr: Basic Functions for Power Analysis (Version 1.3-0) [PDF]. Retrieved Apr 25 2024, from https://cran.r-project.org/web/packages/pwr/pwr.pdf

18. R Development Core Team. (n.d.). pwr.t2n.test: Power Analysis for Two-Sample t-Test on Means (Version 1.3-0) [R Documentation]. Retrieved Apr 25 2024, from https://rdrr.io/cran/pwr/man/pwr.t2n.test.html

19. R Core Team. (2019). Sys.getenv {base}: Get or Set an Environment Variable. In R Documentation. Retrieved Apr 26 2024, from https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/Sys.getenv

20. Wickham, H., & Bryan, J. (2022). POST function. In httr: Tools for Working with URLs and HTTP (Version 1.4.2). Retrieved Apr 28 2024, from https://httr.r-lib.org/reference/POST.html

21. Wickham, H., & Bryan, J. (2022). content function. In httr: Tools for Working with URLs and HTTP (Version 1.4.2). Retrieved Apr 28 2024, from https://httr.r-lib.org/reference/content.html

22. Wickham, H., Hester, J., & Francois, R. (2022). read_delim function. In readr: Read Rectangular Text Data (Version 2.1.2). Retrieved Apr 30 2024, from https://readr.tidyverse.org/reference/read_delim.html


GitHub Events

Total
Last Year

Dependencies

DESCRIPTION cran