nca: Run a basic NCA analyses on a data set

Description Usage Arguments Value Examples

Description

Run a basic NCA analyses on a data set

Usage

1
nca(data, x, y, ceilings=c('ols', 'ce_fdh', 'cr_fdh'))

Arguments

data

dataframe with columns of the variables

x

collection of the columns with the independent variables

y

index or name of the column with the dependent variable

ceilings

vector with the ceiling techniques to include in this analysis

Value

Returns a list with 3 items (see examples for further explanation):

plots

A list of plot-data for each x-y combination

summaries

A list of dataframes with the summaries for each x-y combination

bottlenecks

A list of dataframes with a bottleneck table for each ceiling technique

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Load the data
data(nca.example)
data <- nca.example

# Basic NCA analysis
# Independent variables in the first 2 columns, dependent variable in the third column
# This shows scatter plot(s) with the ceiling lines and the effect size(s) on the console
nca(data, c(1, 2), 3)

# Columns can be selected by name as well
nca(data, c('Individualism', 'Risk taking'), 'Innovation performance')

# Define the ceiling techniques via the ceilings parameter
nca(data, c(1, 2), 3, ceilings=c('ols', 'ce_vrs'))
# These are the available ceiling techniques
print(ceilings)

Example output

Please cite the NCA package as:

  Dul, J. 2016.
  Necessary Condition Analysis.
  R Package Version 2.0.
  URL: http://cran.r-project.org/web/packages/NCA/

This package is based on:
  Dul, J. (2016) "Necessary Condition Analysis (NCA):
  Logic and Methodology of 'Necessary but Not Sufficient' Causality.'
  Organizational Research Methods 19(1), 10-52
  http://orm.sagepub.com/content/19/1/10

A BibTeX entry is provided by:
  citation('NCA')

A quick start guide can be found here:
  http://repub.eur.nl/pub/78323/
  or
  http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2624981

For general information about NCA see :
  http://www.erim.nl/nca


--------------------------------------------------------------------------------
Effect size(s):
              ce_fdh cr_fdh
Individualism 0.416  0.307 
Risk taking   0.309  0.282 
--------------------------------------------------------------------------------

dev.new(): using pdf(file="Rplots1.pdf")

--------------------------------------------------------------------------------
Effect size(s):
              ce_fdh cr_fdh
Individualism 0.416  0.307 
Risk taking   0.309  0.282 
--------------------------------------------------------------------------------

dev.new(): using pdf(file="Rplots2.pdf")
dev.new(): using pdf(file="Rplots3.pdf")

--------------------------------------------------------------------------------
Effect size(s):
              ce_vrs
Individualism 0.255 
Risk taking   0.181 
--------------------------------------------------------------------------------

dev.new(): using pdf(file="Rplots4.pdf")
dev.new(): using pdf(file="Rplots5.pdf")
[1] "ols"    "lh"     "cols"   "qr"     "ce_vrs" "cr_vrs" "ce_fdh" "cr_fdh"
[9] "sfa"   

NCA documentation built on May 3, 2021, 9:07 a.m.