Package SSRA. August 22, 2016

Similar documents
Package pwrrasch. R topics documented: September 28, Type Package

Package DiffCorr. August 29, 2016

Package datasets.load

Package weco. May 4, 2018

Package ClustGeo. R topics documented: July 14, Type Package

Package linkspotter. July 22, Type Package

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package corclass. R topics documented: January 20, 2016

Package factorplot. R topics documented: June 23, Type Package Title Graphical Presentation of Simple Contrasts Version Date

Package RCA. R topics documented: February 29, 2016

Package geneslope. October 26, 2016

Package clustering.sc.dp

Package GCAI.bias. February 19, 2015

Package widyr. August 14, 2017

Package MixSim. April 29, 2017

Package ConvergenceClubs

Package TVsMiss. April 5, 2018

Package spark. July 21, 2017

Package QCAtools. January 3, 2017

Package desplot. R topics documented: April 3, 2018

Package vinereg. August 10, 2018

Package fbroc. August 29, 2016

Package abe. October 30, 2017

Package ECctmc. May 1, 2018

Package optimus. March 24, 2017

Package longclust. March 18, 2018

Package sspline. R topics documented: February 20, 2015

Package areaplot. October 18, 2017

Package omu. August 2, 2018

Package docxtools. July 6, 2018

Package qrfactor. February 20, 2015

Package CuCubes. December 9, 2016

Package DPBBM. September 29, 2016

Package mixphm. July 23, 2015

Package TestDataImputation

Package Binarize. February 6, 2017

Package manet. September 19, 2017

Package bisect. April 16, 2018

Package rvinecopulib

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package CepLDA. January 18, 2016

Package frequencyconnectedness

Package gains. September 12, 2017

Package rplotengine. R topics documented: August 8, 2018

Package EMDomics. November 11, 2018

Package anidom. July 25, 2017

Package lcc. November 16, 2018

Package apastyle. March 29, 2017

Package ssizerna. January 9, 2017

Package svalues. July 15, 2018

Package superheat. February 4, 2017

Package rknn. June 9, 2015

Package comparedf. February 11, 2019

Package MOST. November 9, 2017

Package IATScore. January 10, 2018

Package PedCNV. February 19, 2015

Package mrm. December 27, 2016

Package OLScurve. August 29, 2016

Package sankey. R topics documented: October 22, 2017

Package validara. October 19, 2017

Package vip. June 15, 2018

Package esabcv. May 29, 2015

Package MVisAGe. May 10, 2018

Package strat. November 23, 2016

Package nonlinearicp

Package gsscopu. R topics documented: July 2, Version Date

Package sfc. August 29, 2016

Package gtrendsr. August 4, 2018

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package RNAseqNet. May 16, 2017

Package ClusterBootstrap

Package PSTR. September 25, 2017

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package sparsereg. R topics documented: March 10, Type Package

Package mgc. April 13, 2018

Package MTLR. March 9, 2019

Package CorporaCoCo. R topics documented: November 23, 2017

Package deductive. June 2, 2017

Package crossrun. October 8, 2018

Package pse. June 11, 2017

Package epitab. July 4, 2018

Package ic10. September 23, 2015

Package CSFA. August 14, 2018

Package profvis. R topics documented:

Package edci. May 16, 2018

Package ClustVarLV. December 14, 2016

Package TPD. June 14, 2018

Package JBTools. R topics documented: June 2, 2015

Package Rramas. November 25, 2017

Package robets. March 6, Type Package

Package Numero. November 24, 2018

Package PCADSC. April 19, 2017

Package NetWeaver. January 11, 2017

Package MIICD. May 27, 2017

Package sigqc. June 13, 2018

Package readobj. November 2, 2017

Package alphashape3d

Package sure. September 19, 2017

Multivariate Capability Analysis

Package bayesdp. July 10, 2018

Transcription:

Type Package Title Sakai Sequential Relation Analysis Version 0.1-0 Date 2016-08-22 Author Takuya Yanagida [cre, aut], Keiko Sakai [aut] Package SSRA August 22, 2016 Maintainer Takuya Yanagida <takuya.yanagida@univie.ac.at> Takeya Semantic Structure Analysis (TSSA) and Sakai Sequential Relation Analysis (SSRA) for polytomous items for examining whether each pair of items has a sequential or equal relation. Package includes functions for generating a sequential relation table and a treegram to visualize sequential or equal relations between pairs of items. License GPL-3 LazyLoad yes LazyData true Imports shape, stringr Depends R (>= 3.2.0) RoxygenNote 5.0.1 NeedsCompilation no Repository CRAN Date/Publication 2016-08-22 10:00:17 R topics documented: exdat............................................. 2 plot.ssra........................................... 2 print.ssra........................................... 3 print.tssa........................................... 4 scatterplot.......................................... 5 seqtable........................................... 6 SSRA............................................ 7 1

2 plot.ssra summary.seqtable...................................... 9 treegram........................................... 10 TSSA............................................ 12 Index 15 exdat Example data based on Takeya (1991) A dataset containing 10 observations on 5 items. exdat Format A data frame with 10 rows and 5 variables plot.ssra Plot ssra Function for plotting the ssra object ## S3 method for class 'ssra' plot(x, r.crt = NULL, r.sig = TRUE, d.sq = NULL, m.sig = TRUE, sig.col = TRUE, col = c("red2", "green4", "blue3", "black"), pch = c(1, 2, 0, 4), mar = c(3.5, 3.5, 1.5, 1),...) x requires the return object from the SSRA function r.crt minimal absolute correlation to be judged sequential r.sig plot statistically significant correlations d.sq minimal effect size Cohen s d to be judged sequential m.sig plot statistically significant mean difference sig.col significance in different colors col color code or name pch plotting character mar number of lines of margin to be specified on the four sides of the plot... further arguments passed to or from other methods

print.ssra 3 Details Using this function, all item pairs are plotted on a graph by their correlation coefficients and their mean differences (Cohen s d). This graph is useful for defining (or changing) criteria regarding correlation coefficient and mean difference to judge whether an item pair is sequential or equal. SSRA, treegram, scatterplot # Sakai Sequential Relation Analysis # ordering assesed according to the correlation coefficient and mean difference plot(exdat.ssra) print.ssra Sakai Sequential Relation Analysis Print print function for the ssra object ## S3 method for class 'ssra' print(x, digits = 3,...) x digits requires the result object of hssr function integer indicating the number of decimal places to be used... further arguments passed to or from other methods

4 print.tssa seqtable # Sakai Sequential Relation Analysis # ordering assesed according to the correlation coefficient and mean difference print(exdat.ssra) print.tssa Semantric Structure Analysis Print print function for the tssa object ## S3 method for class 'tssa' print(x, digits = 3,...) x digits requires the result object of hssr function integer indicating the number of decimal places to be used... further arguments passed to or from other methods seqtable

scatterplot 5 # Takeya Semantic Structure Analysis # ordering assesed according to the ordering coefficient exdat.tssa <- TSSA(exdat, m = 5, output = FALSE) print(exdat.tssa) # Takeya Semantic Structure Analysis including statistical testing # ordering assesed according to the ordering coefficient and statistical significance exdat.tssa <- TSSA(exdat, m = 5, sig = TRUE, output = FALSE) print(exdat.tssa) scatterplot Scatterplot Matrices This function produces a scatterplot matrix scatterplot(data, select = NULL, type = c("jitter", "size", "count", "sun")) data select type a data frame select items to be plotted type of plot, i.e., jitter, size, count, and sun Details Using a scatterplot matrix, an overview of the answer patterns for the pairs of items can be taken. TSSA, SSRA

6 seqtable # Select items to be plotted scatterplot(exdat, select = c("item2", "Item3", "Item4")) # Scatterplot matrix: jitter scatterplot(exdat) # Scatterplot matrix: size scatterplot(exdat, type = "size") # Scatterplot matrix: count scatterplot(exdat, type = "count") # Scatterplot matrix: sun scatterplot(exdat, type = "sun") seqtable Sequential Relation Table This function builds a table for the tssa and ssra object used to create a treegram seqtable(object, order = c("no", "decreasing", "increasing"), digits = 3, output = TRUE) object requires the return object from the TSSA or SSRA function order sort by item mean of j? digits integer indicating the number of decimal places to be used output print result table? Details In this table, we can see how many sequential or equal relations each of items has with the other items.

SSRA 7 TSSA, SSRA, treegram, summary.seqtable # Takeya Semantic Structure Analysis # ordering assesed according to the correlation coefficient and mean difference exdat.tssa <- TSSA(exdat, m = 5, output = FALSE) seqtable(exdat.tssa) # Sakai Sequential Relation Analysis # ordering assesed according to the correlation coefficient and mean difference seqtable(exdat.ssra) SSRA Sakai Sequential Relation Analysis This function conducts Sakai Sequential Relation Analysis (SSRA) based on Sakai 2016. SSRA(dat, r.crt = 0.3, mu.sq = 0, mu.eq = Inf, d.sq = 0.2, d.eq = 0.2, pairwise = TRUE, method = c("pearson", "kendall", "spearman"), alpha = 0.05, p.adjust.method = c("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none"), digits = 3, vnames = TRUE, order = c("no", "decreasing", "increasing"), exclude = TRUE, output = TRUE) dat r.crt mu.sq mu.eq d.sq d.eq requires a data frame with polytomous data correlation coefficient criterion to be judged sequential or equivalent Absolute mean difference criterion to be judged sequential maximal absolute mean difference to be judged equivalent effect size for mean difference criterion to be judged sequential maximal effect size Cohen s d to be judged equivalent

8 SSRA Details Value pairwise pairwise deletion of missing data, if pairwise = FALSE listwise deletion is applied method character string indicating which correlation coefficient to be used, pearson = Pearson s product moment correlation coefficien spearman = Spearman s rho statistic kendall = Kendall s tau (default) alpha significance level p.adjust.method p-value correction method for multiple comparisons, see:?p.adjust (default = holm) digits vnames integer indicating the number of decimal places to be used use variable names for labeling? order sort by item mean of j and k? exclude output exclude paths with no relationship? print result table? In Sakai Sequential Relation Analysis (SSRA), a pair of items is judged sequential, if there is a higher correlation and a bigger mean difference than defined criterions between the two items. If there is a higher correlation and a smaller mean difference than defined criterions between the two items, the relation of the two items is judged equal. Returns an object of class ssra, to be used for the seqtable function. The object is a list with following entries: dat (data frame), call" (function call), args (specification of arguments), time (time of analysis), R (R version), package (package version), and restab (result table). The restab entry has following entries: j k n j.mean j.sd k.mean k.sd r r.t r.p r.sig r.crt m.diff sd.diff m.diff.eff m.t m.p m.sig item j item k sample size mean of item j standard deviation of item j mean of item k standard deviation of item k correlation coefficient test statistic of the statistical significanc test for the correlation coefficient statistical significance value of the correlation statistical significance of the correlation (0 = not significant / 1 = significant) correlation criterion for judging sequential or equal : r.p < alpha and r > r.crt (0 = no / 1 = yes) mean difference standard deviation difference effect size Cohen s d for dependent samples test statistic of the statistical significanc test for mean difference statistical significance value of the mean difference statistical significance of the mean difference (0 = not significant / 1 = significant)

summary.seqtable 9 m.crt.sq mean difference criteria for judging sequential : m.diff.p < alpha, m.diff > mu.sq and m.diff.eff > d.sq (0 m.crt.eq mean difference criteria for judging equivalence : statistical significant and m <= mu.eq d <= d.sq (0 = no 1 seq sequential relation of item pairs ("+","-", "") eq equivalence of item pairs ("=" or "") order order structure of item pairs ("=", "+","-") seqtable, TSSA, plot.ssra, scatterplot # Sakai Sequential Relation Analysis # ordering assesed according to the correlation coefficient and mean difference SSRA(exdat) summary.seqtable Sequential Relationship Table Summary summary function for the seqtab object ## S3 method for class 'seqtable' summary(object, exclude = TRUE,...) object requires the result object of seqtable function exclude exclude lower-order paths (i.e., paths included in higher order paths)?... additional arguments affecting the summary produced

10 treegram Details Value Summary function for the seqtab object. In this function, the number of the sequences is counted. Sequence means a range of items with sequential relations. Sequences are classified in their length and are counted. rel var relationship: sq = sequential / eq = equal variables involved in the sequential/equal paths SSRA, TSSA # Sakai Sequential Relation Analysis # ordering assesed according to the correlation coefficient and mean difference exdat.seqtab<- seqtable(exdat.ssra, output = FALSE) summary(exdat.seqtab) treegram Treegram This function draws a treegram for the Takeya Semantic Structure Analysis (TSSA) and Sakai Sequential Relation Analysis (SSRA)

treegram 11 treegram(object, select = NULL, pos = NULL, col = NULL, mai = c(0.2, 0, 0.2, 0.2), print.pos = TRUE, cex.text = 0.95, x.factor = 1.7, x.digits = 0, y.digits = 2, y.intersp = 1.45, cex.legend = 0.9) object select pos col mai print.pos cex.text x.factor x.digits y.digits y.intersp cex.legend requires the result object of seqtab function select items to be plotted position of items on the x-axis color code or name for paths numeric vector of the form c(bottom, left, top, right) which gives the margin size specified in inches display x/y-position as legend text expansion factor relative to current par("cex") shift factor of legend position decimal places of x-position decimal places of y-position legend character interspacing factor for vertical (y) line distances legend character expansion factor relative to current par("cex) Details An item with lower item mean is located above, and an item with higher item mean is placed below in a treegram. An arrow is drawn between two items in sequential relation, namely, from the item with higher item mean to the item with lower item mean. And two items in equal relation are linked by a dashed line. seqtable

12 TSSA # Sakai Sequential Relation Analysis # ordering assesed according to the correlation coefficient and mean difference exdat.seqtab <- seqtable(exdat.ssra, output = FALSE) treegram(exdat.seqtab) # Select items to be plotted exdat.seqtab <- seqtable(exdat.ssra, output = FALSE) treegram(exdat.seqtab, select = c("item2", "Item3", "Item4")) # Define position for each item on the x-axis exdat.seqtab <- seqtable(exdat.ssra, output = FALSE) treegram(exdat.seqtab, pos = c(item5 = 1, Item4 = 3, Item3 = 5, Item2 = 2, Item1 = 4)) # Change colors for each path of an item exdat.seqtab <- seqtable(exdat.ssra, output = FALSE) treegram(exdat.seqtab, col = c(item5 = "red3", Item4 = "blue3", Item3 = "gray99", Item2 = "darkgreen", Item1 = "darkorange2")) TSSA Takeya Semantic Structure Analysis This function conducts Takeya Semantic Structure Analysis (TSSA) for polytomous items based on Takeya 1991. TSSA(dat, m, crit = 0.93, pairwise = TRUE, sig = FALSE, exact = TRUE, alpha = 0.05, p.adjust.method = c("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none"), digits = 3, vnames = TRUE, order = c("no", "decreasing", "increasing"), exclude = TRUE, output = TRUE) dat m requires a data frame with polytomous data, all items need to have the same numbers of response categories requires the number of item response categories

TSSA 13 crit pairwise sig Details Value exact criteria for ordering coefficient pairwise deletion of missing data, if pairwise = FALSE listwise deletion if applied if sig = TRUE, ordering will be assesed according to ordering coefficient and statistical significance if exact = TRUE, exact binomial test will be applied otherwise single-sample proportion test will be applied alpha significance level p.adjust.method p-value correction method for multiple comparisons, see:?p.adjust (default = holm) digits vnames integer indicating the number of decimal places to be used use variable names for labeling? order sort by item mean of j and k? exclude output exclude paths with no relationship? print result table? In Takeya Semantic Structure Analysis (TSSA), a pair of items (e.g., Item1 and Item2) is judged sequential, if exceptional answer patterns are less than a defined criterion. If we suppose Item1 to be the item with higher item mean than Item2 (i.e., Item1 -> Item2 in the treegram), exceptional answer patter means that somone gets a lower score on Item1 and a higher score on Item2. If this kind of sequential relation is bi-directional (i.e., not only Item1 -> Item2 but also Item2 -> Item1 ), the relation of the two items is judged equal. Returns an object of class tssa, to be used for the seqtable function. The object is a list with following entries: dat (data frame), call" (function call), args (specification of arguments), time (time of analysis), R (R version), package (package version), and restab (result table). The restab entry has following entries: j k n j.mean j.sd k.mean k.sd c.jk p.jk sig.jk c.kj p.kj sig.kj item j item k sample size mean of item j standard devication of item j mean of item k standard devication of item k ordering coefficient j -> k p-value j -> k (available if sig = TRUE) statistical significane p-value j -> k (0 = no / 1 = yes; available if sig = TRUE) ordering coefficient k -> j p-value k -> j (0 = no / 1 = yes; available if sig = TRUE) statistical significane p-value k -> j (available if sig = TRUE)

14 TSSA crt.jk ordering j -> k crt.kj ordering k -> j order order structure of item pairs ("=", "+","-") Takuya Yanagida <takuya.yanagida@univie.ac.at> Keiko Sakai <keiko.sakai@oit.ac.jp> SSRA, seqtable, scatterplot # Takeya Semantic Structure Analysis # ordering assesed according to the ordering coefficient TSSA(exdat, m = 5) # Takeya Semantic Structure Analysis including statistical testing # ordering assesed according to the ordering coefficient and statistical significance TSSA(exdat, m = 5, sig = TRUE)

Index Topic datasets exdat, 2 exdat, 2 plot.ssra, 2, 9 print.ssra, 3 print.tssa, 4 scatterplot, 3, 5, 9, 14 seqtable, 4, 6, 9, 11, 14 SSRA, 3, 5, 7, 7, 10, 14 summary.seqtable, 7, 9 treegram, 3, 7, 10 TSSA, 5, 7, 9, 10, 12 15