NIRStat

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / NIRStat

NIRStat

v1.1
Repository CRANLicense GPL-2Lifecycle activeNeeds compilation no
DOI
10.32614/CRAN.package.NIRStat
Task views
Chemometrics and Computational Physics, Missing Data

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

1
Task views
Chemometrics and Computational Physics, Missing Data

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
1.1
License
GPL-2
Lifecycle
active
Needs compilation
no
Last observed
2026-05-30
CRAN
cran.r-project.org/package=NIRStat

수집 소스별 패키지 정보

1개 소스
CRAN
1.1
2026-05-30
License
GPL-2
Depends
R (>= 3.1.0), ggplot2, mgcv, gridExtra
Needs compilation
no
Lifecycle
active
Last observed
2026-05-30 10:45:11

이 패키지가 의존하는 패키지

3개 표시전체 3개
PackageTypeSpec
ggplot2
CRAN · 1.1 · 2026-05-30
Dependsggplot2
gridExtra
CRAN · 1.1 · 2026-05-30
DependsgridExtra
mgcv
CRAN · 1.1 · 2026-05-30
Dependsmgcv
1 / 1

이 패키지를 쓰는 패키지

0개 표시전체 0개
PackageTypeSpec
표시할 dependency edge가 없습니다.
1 / 1

패키지 페이지

All links
20
Repository
CRAN
Version
1.1
Collected
2026-05-29 11:33:14
Package page
https://cran.r-project.org/web/packages/NIRStat/index.html
DOI
10.32614/CRAN.package.NIRStat
CRAN checks
https://cran.r-project.org/web/checks/check_results_NIRStat.html
Reference HTML
https://cran.r-project.org/web/packages/NIRStat/refman/NIRStat.html
Reference PDF
https://cran.r-project.org/web/packages/NIRStat/NIRStat.pdf
Source package
https://cran.r-project.org/src/contrib/NIRStat_1.1.tar.gz
Archive
https://CRAN.R-project.org/src/contrib/Archive/NIRStat
In views
ChemPhysMissingData
Page fields
Author
Yikai Wang [Emory University], Xiao Wang [ICF]
CRAN Checks
NIRStat results
Contact
Xiao Wang <xiao.wang@icf.com>
DOI
10.32614/CRAN.package.NIRStat
In Views
ChemPhys , MissingData
License
GPL-2
Maintainer
Yikai Wang <johnzon.wyk at gmail.com>
NeedsCompilation
no
Old Sources
NIRStat archive
Package Source
NIRStat_1.1.tar.gz
Published
2020-05-27
Reference Manual
NIRStat.html , NIRStat.pdf
Version
1.1
Windows Binaries
r-devel: NIRStat_1.1.zip , r-release: NIRStat_1.1.zip , r-oldrel: NIRStat_1.1.zip
MacOS Binaries
r-release (arm64): NIRStat_1.1.tgz , r-oldrel (arm64): NIRStat_1.1.tgz , r-release (x86_64): NIRStat_1.1.tgz , r-oldrel (x86_64): NIRStat_1.1.tgz
Version
1.1
Published
2020-05-27
DOI
10.32614/CRAN.package.NIRStat
Author
Yikai Wang [Emory University], Xiao Wang [ICF]
Maintainer
Yikai Wang <johnzon.wyk at gmail.com>
Contact
Xiao Wang <xiao.wang@icf.com>
License
GPL-2
NeedsCompilation
no
In Views
ChemPhys , MissingData
CRAN Checks
NIRStat results
Reference Manual
NIRStat.html , NIRStat.pdf
Package Source
NIRStat_1.1.tar.gz
Windows Binaries
r-devel: NIRStat_1.1.zip , r-release: NIRStat_1.1.zip , r-oldrel: NIRStat_1.1.zip
MacOS Binaries
r-release (arm64): NIRStat_1.1.tgz , r-oldrel (arm64): NIRStat_1.1.tgz , r-release (x86_64): NIRStat_1.1.tgz , r-oldrel (x86_64): NIRStat_1.1.tgz
Old Sources
NIRStat archive
Page sections 3
Documentation
Heading
Documentation
Links
[{"label":"NIRStat.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/NIRStat/refman/NIRStat.html"},{"label":"NIRStat.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/NIRStat/NIRStat.pdf"}]
Text
Reference manual: NIRStat.html , NIRStat.pdf
Downloads
Heading
Downloads
Links
[{"label":"NIRStat_1.1.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/NIRStat_1.1.tar.gz"},{"label":"NIRStat_1.1.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/NIRStat_1.1.zip"},{"label":"NIRStat_1.1.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/NIRStat_1.1.zip"},{"label":"NIRStat_1.1.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/NIRStat_1.1.zip"},{"label":"NIRStat_1.1.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/NIRStat_1.1.tgz"},{"label":"NIRStat_1.1.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/NIRStat_1.1.tgz"},{"label":"NIRStat_1.1.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/NIRStat_1.1.tgz"},{"label":"NIRStat_1.1.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/NIRStat_1.1.tgz"},{"label":"NIRStat archive","section":"","type":"","url":"https://CRAN.R-project.org/src/contrib/Archive/NIRStat"}]
Text
Package source: NIRStat_1.1.tar.gz Windows binaries: r-devel: NIRStat_1.1.zip , r-release: NIRStat_1.1.zip , r-oldrel: NIRStat_1.1.zip macOS binaries: r-release (arm64): NIRStat_1.1.tgz , r-oldrel (arm64): NIRStat_1.1.tgz , r-release (x86_64): NIRStat_1.1.tgz , r-oldrel (x86_64): NIRStat_1.1.tgz Old sources: NIRStat archive
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=NIRStat","section":"","type":"","url":"https://CRAN.R-project.org/package=NIRStat"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=NIRStat to link to this page.
Documentation 2
Downloads 9
All page links 20

패키지 문서 원문

2 artifacts
reference_manual_html
Reference manual HTML
CRAN · 1.1 · Documentation · text/html · 12,987 · 2026-05-07
Title
Help for package NIRStat
Label
Reference manual HTML
Text content
Text content
Help for package NIRStat const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {NIRStat} Contents MAUCtest Slopetest plotNIRS Type: Package Title: Novel Statistical Methods for Studying Near-Infrared Spectroscopy (NIRS) Time Series Data Version: 1.1 Date: 2020-05-24 Author: Yikai Wang [Emory University], Xiao Wang [ICF] Maintainer: Yikai Wang <johnzon.wyk@gmail.com> Contact: Xiao Wang <xiao.wang@icf.com> Depends: R (≥ 3.1.0), ggplot2, mgcv, gridExtra Description: Provides transfusion-related differential tests on Near-infrared spectroscopy (NIRS) time series with detection limit, which contains two testing statistics: Mean Area Under the Curve (MAUC) and slope statistic. This package applied a penalized spline method within imputation setting. Testing is conducted by a nested permutation approach within imputation. Refer to Guo et al (2018) < doi:10.1177/0962280218786302 > for further details. License: GPL-2 NeedsCompilation: no Packaged: 2020-05-27 20:56:57 UTC; ywan566 Repository: CRAN Date/Publication: 2020-05-27 21:50:03 UTC MAUC statistics based Analysis for NIRS time series. Description Estimate the Mean Area Under the Curve (MAUC) statistics and conduct a nonparametric test on the MAUC difference before transfuion and after trasfusion. If detection limit occurs at 15 Usage MAUCtest(Yvec,timevec,transfusionvec,fig = T,SD_est=F,num.permu=1000) Arguments Yvec The outcome of NIRS time series Y(t_{i}) of length N ranging from 15 to 100. timevec The time index of NIRS time series t_{i} of length N. transfusionvec The 0/1 indicator of the transfusion status X(t_{i}) . X(t_{i})=0 means the current time point is before transfusion and X(t_{i})=1 means the current time point is after transfusion. fig Whether to plot the NIRS time series. Default value is TRUE. SD_est Whether to estimate the SD of the MAUC statistic for pre-transfusion and post-transfuion. Default value is FALSE. num.permu Number of permutation for permutation test. Default value is 1000. Details This functinon estimates the Mean Area Under the Curve (MAUC) statistics and conducts a permutation based test on the MAUC difference before transfuion and after trasfusion. If detection limit (DL) occurs (15), it will impute the missed data based on a uniform distribution and estimate the MAUC statistics through a standard imputation approach. The statistical testing is conducted through a nested permutation approach across all imputated datasets. Value An R vector from MAUCtest containing MAUC statistics and Pvalue in the following order: MAUC.before The estimated MAUC statistic before transfusion. MAUC.after The estimated MAUC statistic after transfusion. MAUC.diff The estimated MAUC statistic difference between before transfusion and after transfusion. Pvalue The pvalue of testing the MAUC difference to be zero or not. SD_pre SD of the MAUC statistic for pre-transfusion. Optional, only when SD_est = TRUE. SD_post SD of the MAUC statistic for post-transfusion. Optional, only when SD_est = TRUE. Author(s) Yikai Wang [Emory], Xiao Wang [ICF] Maintainer: Yikai Wang johnzon.wyk@gmail.com References Guo, Y., Wang, Y., Marin, T., Kirk, E., Patel, R., Josephson, C. Statistical methods for characterizing transfusion-related changes in regional oxygenation using Near-infrared spectroscopy in preterm infants. Statistical methods in medical research 28.9 (2019): 2710-2723. Examples # Data Simulation dat = data.frame(Y= rep(0,100),t=1:100,trans = c(rep(0,50),rep(1,50))) dat$Y = apply(dat,1,function(x){rnorm(1,5*rnorm(1),6*exp(rnorm(1)))}) dat$Y = dat$Y + 15 - quantile(dat$Y,0.3) dat$Y[dat$Y<=15] = 15 # Estimate the MAUC statistics of the NIRS data and test on the difference. MAUCtest(dat$Y,dat$t,dat$trans,TRUE,FALSE,100) Slope statistics based Analysis for NIRS data. Description Estimate the slope statistics and conduct a nonparametric based test on the slope difference before transfuion and after trasfusion. If detection limit occurs at 15 Usage Slopetest(Yvec,timevec,transfusionvec,SD_est=F,num.permu=1000) Arguments Yvec The outcome of NIRS time series Y(t_{i}) of length N ranging from 15 to 100. timevec The time index of NIRS time series t_{i} of length N. transfusionvec The 0/1 indicator of the transfusion status X(t_{i}) . X(t_{i})=0 means the current time point is before transfusion and X(t_{i})=1 means the current time point is after transfusion. SD_est Whether to estimate the SD of the SLOPE statistic for pre-transfusion and post-transfuion. Default value is FALSE. num.permu Number of permutation for permutation test. Default value is 1000. Details This function estimates the slope statistics before transfusion and after transfusion based on penalized regression spline method and tests the difference based on a within-band permutation approach. If there is detection limit occurs (15), it will impute the missed data based on a uniform distribution and estimate the slope statistics through a standard imputation approach. The statistical testing is conducted through a nested within-band permutation approach across all imputated datasets. Value An R vector from Slopetest containing Slope statistics and Pvalue in the following order: Slope.before The estimated Slope statistic before transfusion. Slope.after The estimated Slope statistic after transfusion. Slope.diff The estimated Slope statistic difference between before transfusion and after transfusion. Pvalue The pvalue of testing the Slope difference to be zero or not. SD_pre SD of the Slope statistic for pre-transfusion. Optional, only when SD_est = TRUE. SD_post SD of the Slope statistic for post-transfusion. Optional, only when SD_est = TRUE. Author(s) Yikai Wang [Emory], Xiao Wang [ICF] Maintainer: Yikai Wang johnzon.wyk@gmail.com References Guo, Y., Wang, Y., Marin, T., Kirk, E., Patel, R., Josephson, C. Statistical methods for characterizing transfusion-related changes in regional oxygenation using Near-infrared spectroscopy in preterm infants. Statistical methods in medical research 28.9 (2019): 2710-2723. Examples # Data Simulation dat = data.frame(Y= rep(0,100),t=1:100,trans = c(rep(0,50),rep(1,50))) dat$Y = apply(dat,1,function(x){rnorm(1,5*rnorm(1),6*exp(rnorm(1)))}) dat$Y = dat$Y + 15 - quantile(dat$Y,0.3) dat$Y[dat$Y<=15] = 15 # Estimate the Slope statistics of the NIRS data and test on the difference. Slopetest(dat$Y,dat$t,dat$trans,FALSE,100) NIRS Time Series Visualization Description This function visualizes the NIRS time series data and estimates the underlying smoothed trend of the NRIS based on a nonparametric regression approach. Usage plotNIRS(Yvec,timevec,transfusionvec) Arguments Yvec The outcome of NIRS time series Y(t_{i}) of length N ranging from 15 to 100. timevec The time index of NIRS time series t_{i} of length N. transfusionvec The 0/1 indicator of the transfusion status X(t_{i}) . X(t_{i})=0 means the current time point is before transfusion and X(t_{i})=1 means the current time point is after transfusion. Details This function visualizes the NIRS time series data before and after transfusion. In order to estimate the underlying smoothed curve, it first imputes the data with detection limit (DL) and utilizes a nonparametric regression approach for the imputed data. The time points with DL is in red and others are in black. Author(s) Yikai Wang [Emory], Xiao Wang [ICF] Maintainer: Yikai Wang johnzon.wyk@gmail.com Examples # Data Simulation dat = data.frame(Y= rep(0,200),t=1:200,trans = c(rep(0,100),rep(1,100))) dat$Y = apply(dat,1,function(x){rnorm(1,5*rnorm(1),6*exp(rnorm(1)))}) dat$Y = dat$Y + 15 - quantile(dat$Y,0.3) dat$Y[dat$Y<=15] = 15 # Visualize the NIRS time series before and after transfusion. plotNIRS(dat$Y,dat$t,dat$trans)
section
NIRStat.pdf
CRAN · 1.1 · Documentation · application/pdf · 109,762 · 2026-05-07
Title
NIRStat.pdf
Label
NIRStat.pdf

Reference for NIRStat (1.1)

3개 topic
MAUCtest
MAUC statistics based Analysis for NIRS time series.
CRAN · 1.1 · NIRStat/man/MAUCtest.Rd · 2026-05-07

Estimate the Mean Area Under the Curve (MAUC) statistics and conduct a nonparametric test on the MAUC difference before transfuion and after trasfusion. If detection limit occurs at 15%, this function will impute the missed data based on uniform distribution and conduct a nested permutation approach within imputation for statistical testing.

Aliases
MAUCtest
Usage
MAUCtest(Yvec,timevec,transfusionvec,fig = T,SD_est=F,num.permu=1000)
Arguments
Yvec
The outcome of NIRS time series Y(t_i) of length N ranging from 15 to 100.
timevec
The time index of NIRS time series t_i of length N.
transfusionvec
The 0/1 indicator of the transfusion status X(t_i). X(t_i)=0 means the current time point is before transfusion and X(t_i)=1 means the current time point is after transfusion.
fig
Whether to plot the NIRS time series. Default value is TRUE.
SD_est
Whether to estimate the SD of the MAUC statistic for pre-transfusion and post-transfuion. Default value is FALSE.
num.permu
Number of permutation for permutation test. Default value is 1000.
Details
This functinon estimates the Mean Area Under the Curve (MAUC) statistics and conducts a permutation based test on the MAUC difference before transfuion and after trasfusion. If detection limit (DL) occurs (15), it will impute the missed data based on a uniform distribution and estimate the MAUC statistics through a standard imputation approach. The statistical testing is conducted through a nested permutation approach across all imputated datasets.
Value
An R vector from MAUCtest containing MAUC statistics and Pvalue in the following order: MAUC.beforeThe estimated MAUC statistic before transfusion. MAUC.afterThe estimated MAUC statistic after transfusion. MAUC.diffThe estimated MAUC statistic difference between before transfusion and after transfusion. PvalueThe pvalue of testing the MAUC difference to be zero or not. SD_preSD of the MAUC statistic for pre-transfusion. Optional, only when SD_est = TRUE. SD_postSD of the MAUC statistic for post-transfusion. Optional, only when SD_est = TRUE.
Examples
# Data Simulation dat = data.frame(Y= rep(0,100),t=1:100,trans = c(rep(0,50),rep(1,50))) dat$Y = apply(dat,1,function(x)rnorm(1,5*rnorm(1),6*exp(rnorm(1)))) dat$Y = dat$Y + 15 - quantile(dat$Y,0.3) dat$Y[dat$Y<=15] = 15 # Estimate the MAUC statistics of the NIRS data and test on the difference. MAUCtest(dat$Y,dat$t,dat$trans,TRUE,FALSE,100)
Author
Yikai Wang [Emory], Xiao Wang [ICF] Maintainer: Yikai Wang johnzon.wyk@gmail.com
References
Guo, Y., Wang, Y., Marin, T., Kirk, E., Patel, R., Josephson, C. Statistical methods for characterizing transfusion-related changes in regional oxygenation using Near-infrared spectroscopy in preterm infants. Statistical methods in medical research 28.9 (2019): 2710-2723.
Slopetest
Slope statistics based Analysis for NIRS data.
CRAN · 1.1 · NIRStat/man/Slopetest.Rd · 2026-05-07

Estimate the slope statistics and conduct a nonparametric based test on the slope difference before transfuion and after trasfusion. If detection limit occurs at 15%, this function will impute the missed data based on uniform distribution and conduct a within-band permutation approach within imputation for statistical testing.

Aliases
Slopetest
Usage
Slopetest(Yvec,timevec,transfusionvec,SD_est=F,num.permu=1000)
Arguments
Yvec
The outcome of NIRS time series Y(t_i) of length N ranging from 15 to 100.
timevec
The time index of NIRS time series t_i of length N.
transfusionvec
The 0/1 indicator of the transfusion status X(t_i). X(t_i)=0 means the current time point is before transfusion and X(t_i)=1 means the current time point is after transfusion.
SD_est
Whether to estimate the SD of the SLOPE statistic for pre-transfusion and post-transfuion. Default value is FALSE.
num.permu
Number of permutation for permutation test. Default value is 1000.
Details
This function estimates the slope statistics before transfusion and after transfusion based on penalized regression spline method and tests the difference based on a within-band permutation approach. If there is detection limit occurs (15), it will impute the missed data based on a uniform distribution and estimate the slope statistics through a standard imputation approach. The statistical testing is conducted through a nested within-band permutation approach across all imputated datasets.
Value
An R vector from Slopetest containing Slope statistics and Pvalue in the following order: Slope.beforeThe estimated Slope statistic before transfusion. Slope.afterThe estimated Slope statistic after transfusion. Slope.diffThe estimated Slope statistic difference between before transfusion and after transfusion. PvalueThe pvalue of testing the Slope difference to be zero or not. SD_preSD of the Slope statistic for pre-transfusion. Optional, only when SD_est = TRUE. SD_postSD of the Slope statistic for post-transfusion. Optional, only when SD_est = TRUE.
Examples
# Data Simulation dat = data.frame(Y= rep(0,100),t=1:100,trans = c(rep(0,50),rep(1,50))) dat$Y = apply(dat,1,function(x)rnorm(1,5*rnorm(1),6*exp(rnorm(1)))) dat$Y = dat$Y + 15 - quantile(dat$Y,0.3) dat$Y[dat$Y<=15] = 15 # Estimate the Slope statistics of the NIRS data and test on the difference. Slopetest(dat$Y,dat$t,dat$trans,FALSE,100)
Author
Yikai Wang [Emory], Xiao Wang [ICF] Maintainer: Yikai Wang johnzon.wyk@gmail.com
References
Guo, Y., Wang, Y., Marin, T., Kirk, E., Patel, R., Josephson, C. Statistical methods for characterizing transfusion-related changes in regional oxygenation using Near-infrared spectroscopy in preterm infants. Statistical methods in medical research 28.9 (2019): 2710-2723.
plotNIRS
NIRS Time Series Visualization
CRAN · 1.1 · NIRStat/man/plotNIRS.Rd · 2026-05-07

This function visualizes the NIRS time series data and estimates the underlying smoothed trend of the NRIS based on a nonparametric regression approach.

Aliases
plotNIRS
Usage
plotNIRS(Yvec,timevec,transfusionvec)
Arguments
Yvec
The outcome of NIRS time series Y(t_i) of length N ranging from 15 to 100.
timevec
The time index of NIRS time series t_i of length N.
transfusionvec
The 0/1 indicator of the transfusion status X(t_i). X(t_i)=0 means the current time point is before transfusion and X(t_i)=1 means the current time point is after transfusion.
Details
This function visualizes the NIRS time series data before and after transfusion. In order to estimate the underlying smoothed curve, it first imputes the data with detection limit (DL) and utilizes a nonparametric regression approach for the imputed data. The time points with DL is in red and others are in black.
Examples
# Data Simulation dat = data.frame(Y= rep(0,200),t=1:200,trans = c(rep(0,100),rep(1,100))) dat$Y = apply(dat,1,function(x)rnorm(1,5*rnorm(1),6*exp(rnorm(1)))) dat$Y = dat$Y + 15 - quantile(dat$Y,0.3) dat$Y[dat$Y<=15] = 15 # Visualize the NIRS time series before and after transfusion. plotNIRS(dat$Y,dat$t,dat$trans)
Author
Yikai Wang [Emory], Xiao Wang [ICF] Maintainer: Yikai Wang johnzon.wyk@gmail.com

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN1.12026-05-282026-05-30

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.