Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Max-type Test for Marginal Correlation with Bootstrap

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

canyi-chen/MarginalMaxTest

Repository files navigation

The goal of MarginalMaxTest is to test the marginal correlation betweena scalar response variable with a vector of explanatory variables usingthe max-type test with bootstrap. The test is based on the max-typestatistic and its asymptotic distribution under the null hypothesis ofno marginal correlation. The bootstrap procedure is used to approximatethe null distribution of the test statistic. The package provides afunction for performing the test. For more technical details, refer toZhang and Laber (2014) doi:10.1080/01621459.2015.1106403.

Installation

Install the R CRAN version of MarginalMaxTest like so:

install.packages("MarginalMaxTest")

You can also install the development version of MarginalMaxTest fromGitHub with:

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

Example

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

library(MarginalMaxTest)# Generate sample dataset.seed(47)n<-200p<-10x<-matrix(rnorm(n*p),n,p)y<-0.25*x[,1]+ rnorm(n)# Run the testmarginal.test(x,y,B=200,method="adaptive")#> $p_value#> [1] 0.01#>#> $time#> [1] 0.007marginal.test(x,y,B=200,method="max")#> $p_value#> [1] 0#>#> $time#> [1] 0.007marginal.test(x,y,B=200,method="sum")#> $p_value#> [1] 0.11#>#> $time#> [1] 0.007

About

Max-type Test for Marginal Correlation with Bootstrap

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp