I'm running a non-parametric ANCOVA in R. I'm using the non-parametric ANCOVA from the fANCOVA package. https://cran.r-project.org/web/packages/fANCOVA/fANCOVA.pdf I'm getting the results below. Now I need to run pair-wise comparisons, similar to Dunn test in Kruskal-Wallis test and to Tukey HSD in ANOVA -- even though the results below are not significant, I want to do the pairwise comparisons, in the case other analyses shows significance. Therefore I have the following question: How do I run pairwise comparisons in a non-parametric ANCOVA in R/SPSS? I greatly appreciate your help.
I'm applying the formula from fANCOVA:
T.aov(x, y, group, B = 200, degree = 1, criterion = c("aicc", "gcv"), family = c("gaussian", "symmetric"), tstat = c("DN", "YB"), user.span = NULL, ...)
T.aov(subsetframe$IriSum1, subsetframe$EmDiffSum1,subsetframe$Condition2), IriSum1 is the covariate, EmDiffSum1 is the dependent variable, and Condition2 is the grouping variable.
Test the equality of curves based on an ANOVA-type statistic
Comparing 5 nonparametric regression curves Local polynomial regression with automatic smoothing parameter selection via AICC >is used for curve fitting. Wide-bootstrap algorithm is applied to obtain the null distribution.
Null hypothesis: there is no difference between the 5 curves. T = 4.793 p-value = 0.209
I also tried the loess.ancova (Fit a semiparametric ANCOVA model with a local polynomial smoother) from the fANCOVA package. The result is:
loess.ancova(x, spdata.2$EmDiffSum1,spdata.2$Condition, plot=TRUE, data.points = > TRUE) $linear.fit [,1] (Intercept) 4.510333 groupB 1.447953 groupC 1.373840 groupD 1.450809 groupE 1.047067
$smooth.fit Call: loess(formula = lm.res ~ x1 + x2, span = span1, degree = degree, family = family)
Number of Observations: 132 Equivalent Number of Parameters: 8.28 Residual Standard Error: 1.957
Thank you very much for your help. I use both R and SPSS. While these tests have been run in R, if anybody knows the method for running non-parametric ANCOVA with pairwise comparisons in SPSS, I'd be very grateful to hear that too.