DensEst: Multiple Hypothesis Test using KDE: Finding the p-values.

Description Usage Arguments Value Examples

View source: R/DenEst.R

Description

Multiple Hypothesis Test using KDE: Finding the p-values.

Usage

1
DensEst(ScoreTables, percentpwr, bndwidth, kern)

Arguments

ScoreTables

Table of scores for each new sequence. Must be in list format.

percentpwr

Significance level.

bndwidth

Bandwidth for the KDE.

kern

Kernel of choice for the KDE.

Value

P-values for the multiple hypothesis test.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
df<-data.frame(Time=c("2020-01-01 00:10:09", "2020-01-01 01:12:34" , "2020-01-02 06:38:09",
"2020-01-02 07:21:51"),Cat=c('A','B','A','C'))
newdf<-data.frame(Time=c("2020-01-03 01:30:20", "2020-01-03 04:19:14" , "2020-01-03 06:51:29"),
Cat=c('A','B','A'))
#For daily data:
seqlist<-SeqList(df,'%Y-%m-%d')
sqslist<-SQSList(seqlist,2)
newseqlist<-SeqList(newdf,'%Y-%m-%d')
newsqslist<-SQSList(newseqlist,2)
allsqs<-AllSQS(c('A','B','C'),2)
sqsindex<-SQSIndex(allsqs,sqslist)
newsqsindex<-SQSIndex(allsqs,newsqslist)
regseqscore<-RegSeqScore(seqlist,allsqs,sqsindex,c('A','B','C'),c(0.5,0.25,0.25),2,1,0.5)
ScoreTables<-ScoreTable(regseqscore, newseqlist[[1]], seqlist, allsqs, newsqsindex, sqsindex,
c('A','B','C'),c(0.5,0.25,0.25), 2, 1, 0.5)
DensEst(list(ScoreTables),0.05,'nrd0','gaussian')

jgillam13/IRASD documentation built on Feb. 10, 2021, 9:38 a.m.