Rcall Package has a major update and new features. For example, the new version also preserves the column and row names of matrices in R to construct an identical matrix in Stata. It also allows you to return matrices as large as the matesize of your Stata.
if you have github installer package, you can update or install Rcall as follows:
Here is an example of the new feature, which creates a matrix in R (within Stata) , assigns column and row names to it, and views it in Stata:
if you have github installer package, you can update or install Rcall as follows:
Code:
github install haghish/Rcall
Here is an example of the new feature, which creates a matrix in R (within Stata) , assigns column and row names to it, and views it in Stata:
Code:
R clear R : x = matrix(c(1,2,3,4,5,6), nrow=2) R : colnames(x) = c("column1", "column2", "column3") R : rownames(x) = c("row1", "row2") // Getting the matrix in Stata, automatically return list matrix list r(x) r(x)[2,3] column1 column2 column3 row1 1 3 5 row2 2 4 6
Comment