Description Usage Arguments Details Value References Examples
View source: R/balassa_index.R
balassa_index() computes the Balassa Index for a
bipartite relation between two disjoint sets X, the "source" or "from" side,
and Y, the "target" or "to" side.
| 1 2 | balassa_index(data, source = "source", target = "target",
  value = "value", discrete = TRUE, cutoff = 1)
 | 
| data | (Type: data.frame, matrix or dgCMatrix) a dataset such as  | 
| source | (Type: character) the column with the elements of set X.
By default this is set to  | 
| target | (Type: character) the column with the elements of set Y.
By default this is set to  | 
| value | (Type: character) the column with the binary expression for the
Balassa Index.
By default this is set to  | 
| discrete | (Type: logical) whether converting the Balassa Index to
discrete (0/1) values. Anything below the specified cutoff is converted to 0
and 1 otherwise. By default this is set to  | 
| cutoff | (Type: numeric) the cutoff to use for discretization.
By default this is set to  | 
The current implementation follows \insertCitemeasuringcomplexity2015binet to obtain a metric for specialisation. In the context of international trade, if the Balassa Index for a country-product pair is more than 1, it means that country is specialized in that product.
A data.frame with the Balassa Index.
For more information see:
\insertRefmeasuringcomplexity2015binet
and the references therein.
| 1 2 3 4 5 6 | balassa_index(
  data = galactic_federation,
  source = "planet",
  target = "product",
  value = "export_value"
)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.