Skip to content

randtest and fourthcorner statistics for partial RLQ? Error in UseMethod("randtest" / "fourthcorner.rlq") : no applicable method for 'randtest' applied to an object of class "c('within', 'dudi')" #45

Description

@maurinka

How can I evaluate global significance of a partial RLQ (wca.rlq), and calculate the contributions of the individual variables to the RLQ axes just as described by Wesuls et al. (2012, doi: 10.1111/j.1654-1103.2011.01342.x)?

i.e. what would be the corresponding functions for:

nrepet = 999
testrlq.env <- randtest(rlq.env, modeltype = 6, nrepet = nrepet)

randtest(wrlq_crop, modeltype = 6, nrepet = nrepet) # doesnt work
Error in UseMethod("randtest") :
no applicable method for 'randtest' applied to an object of class "c('within', 'dudi')"

and

testQaxes.comb.env <- fourthcorner.rlq(rlq.env, modeltype = 6, typetest = "Q.axes", nrepet = nrepet, p.adjust.method.G = "fdr", p.adjust.method.D = "fdr")
testRaxes.comb.env <- fourthcorner.rlq(rlq.env, modeltype = 6, typetest = "R.axes", nrepet = nrepet, p.adjust.method.G = "fdr", p.adjust.method.D = "fdr")

fourthcorner.rlq(wrlq_crop, modeltype = 6, typetest = "R.axes", nrepet = nrepet, p.adjust.method.G = "fdr", p.adjust.method.D = "fdr")
Error in fourthcorner.rlq(wrlq_crop, modeltype = 6, typetest = "R.axes", :
Object of class 'rlq' expected

Help very much appreciated @sdray

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions