MarginalMaxTest

Max-type Test for Marginal Correlation with Bootstrap

https://github.com/canyi-chen/marginalmaxtest

Science Score: 39.0%

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

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

Repository

Max-type Test for Marginal Correlation with Bootstrap

Basic Info
  • Host: GitHub
  • Owner: canyi-chen
  • License: other
  • Language: C++
  • Default Branch: master
  • Size: 9.77 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 1
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# Max-Type Test for Marginal Correlation with Bootstrap (MarginalMaxTest)




The goal of MarginalMaxTest is to test the marginal correlation between a scalar response variable with a vector of explanatory variables 
    using the max-type test with bootstrap.
    The test is based on the max-type statistic and its asymptotic distribution
    under the null hypothesis of no marginal correlation.
    The bootstrap procedure is used to approximate the null distribution of the test statistic.
    The package provides a function for performing the test. For more technical details, refer to Zhang and Laber (2014) .

## Installation

Install the R CRAN version of MarginalMaxTest like so:

```r
install.packages("MarginalMaxTest")
```

You can also install the development version of MarginalMaxTest from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("canyi-chen/MarginalMaxTest")
```

## Example

This is a basic example which shows you how to solve a common problem:

```{r example}
library(MarginalMaxTest)
# Generate sample data
set.seed(47)
n <- 200
p <- 10
x <- matrix(rnorm(n*p), n, p)
y <- 0.25*x[,1] + rnorm(n)
# Run the test
marginal.test(x, y, B = 200, method = "adaptive")
marginal.test(x, y, B = 200, method = "max")
marginal.test(x, y, B = 200, method = "sum")
```

Owner

  • Login: canyi-chen
  • Kind: user

GitHub Events

Total
  • Create event: 3
  • Release event: 1
  • Issues event: 1
  • Push event: 3
Last Year
  • Create event: 3
  • Release event: 1
  • Issues event: 1
  • Push event: 3

Packages

  • Total packages: 1
  • Total downloads:
    • cran 145 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: MarginalMaxTest

Max-Type Test for Marginal Correlation with Bootstrap

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 145 Last month
Rankings
Dependent packages count: 26.7%
Dependent repos count: 32.9%
Average: 48.8%
Downloads: 86.7%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • Rcpp * imports