These functions can be used to specify a determinant structure: a hierarchical
structure of determinants that can then be conveniently plotted and analysed,
for example using detStructCIBER
.
These functions are made to be used together; see the example and the forthcoming article for more information.
determinantStructure(name, selection = NULL, ...) determinantVar(name, selection = NULL, ...) subdeterminants(name, selection = NULL, ...) subdeterminantProducts(name, selection = NULL, ...) # S3 method for determinantStructure print(x, ...) # S3 method for determinantStructure plot(x, useDiagrammeR = FALSE, ...)
name | The name of the variable that is specified. |
---|---|
selection | A regular expression to use to select the variables in a dataframe
that are considered items that together form this variable. For
|
x | The |
useDiagrammeR | Whether to simply use |
… | Any additional arguments are other determinant structure building functions. These are used to construct the determinant structure 'tree'. |
This family of functions will be explained more in detail in a forthcoming paper.
plot
and print
methods plot and print a determinantStructure object.
A determinantStructure object, which is a data.tree
object.
(Forthcoming)
detStructAddVarLabels
, detStructAddVarNames
,
detStructComputeProducts
, detStructComputeScales
,
detStructCIBER
determinantStructure('using R', list('using R', behaviorRegEx = 'some RegEx'), determinantVar("Intention", "another RegEx", determinantVar("Attitude", "third RegEX", subdeterminants("Likelihood", "4th RegEx"), subdeterminants("Evaluation", "5th RegEx"), subdeterminantProducts("attProduct", c("4th RegEx", "5th RegEx"))), determinantVar("perceivedNorm", "6th RegEx", subdeterminants("Approval", "7th RegEx"), subdeterminants("Motivation to comply", "8th RegEx"), subdeterminantProducts("normProduct", c("7th RegEx", "8th RegEx"))), determinantVar("pbc", "9th RegEx", subdeterminants("Control beliefs", "10th RegEx"))));#> $name #> [1] "using R" #> #> $type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tdeterminantStructure" #> #> $behaviorRegEx #> [1] "some RegEx" #> #> $selection #> [1] "using R" #> #> [[5]] #> [[5]]$name #> [1] "Intention" #> #> [[5]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tdeterminantVar" #> #> [[5]]$selection #> [1] "another RegEx" #> #> [[5]][[4]] #> [[5]][[4]]$name #> [1] "Attitude" #> #> [[5]][[4]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tdeterminantVar" #> #> [[5]][[4]]$selection #> [1] "third RegEX" #> #> [[5]][[4]][[4]] #> [[5]][[4]][[4]]$name #> [1] "Likelihood" #> #> [[5]][[4]][[4]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tsubdeterminants" #> #> [[5]][[4]][[4]]$selection #> [1] "4th RegEx" #> #> #> [[5]][[4]][[5]] #> [[5]][[4]][[5]]$name #> [1] "Evaluation" #> #> [[5]][[4]][[5]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tsubdeterminants" #> #> [[5]][[4]][[5]]$selection #> [1] "5th RegEx" #> #> #> [[5]][[4]][[6]] #> [[5]][[4]][[6]]$name #> [1] "attProduct" #> #> [[5]][[4]][[6]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tsubdeterminantProducts" #> #> [[5]][[4]][[6]]$selection #> [1] "4th RegEx" "5th RegEx" #> #> #> #> [[5]][[5]] #> [[5]][[5]]$name #> [1] "perceivedNorm" #> #> [[5]][[5]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tdeterminantVar" #> #> [[5]][[5]]$selection #> [1] "6th RegEx" #> #> [[5]][[5]][[4]] #> [[5]][[5]][[4]]$name #> [1] "Approval" #> #> [[5]][[5]][[4]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tsubdeterminants" #> #> [[5]][[5]][[4]]$selection #> [1] "7th RegEx" #> #> #> [[5]][[5]][[5]] #> [[5]][[5]][[5]]$name #> [1] "Motivation to comply" #> #> [[5]][[5]][[5]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tsubdeterminants" #> #> [[5]][[5]][[5]]$selection #> [1] "8th RegEx" #> #> #> [[5]][[5]][[6]] #> [[5]][[5]][[6]]$name #> [1] "normProduct" #> #> [[5]][[5]][[6]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tsubdeterminantProducts" #> #> [[5]][[5]][[6]]$selection #> [1] "7th RegEx" "8th RegEx" #> #> #> #> [[5]][[6]] #> [[5]][[6]]$name #> [1] "pbc" #> #> [[5]][[6]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tdeterminantVar" #> #> [[5]][[6]]$selection #> [1] "9th RegEx" #> #> [[5]][[6]][[4]] #> [[5]][[6]][[4]]$name #> [1] "Control beliefs" #> #> [[5]][[6]][[4]]$type #> [1] "\t\t\t\t\t\t\t\t\t\t\t\tsubdeterminants" #> #> [[5]][[6]][[4]]$selection #> [1] "10th RegEx" #> #> #> #>