
- #Stata citrix on mac how to import data file install#
- #Stata citrix on mac how to import data file code#
You should now see your dataset in a new window and from there you can start analyzing your data.
#Stata citrix on mac how to import data file code#
Change this option if missing values in your raw data are coded as “NA” or “0” (tip: do not code yourself missing values as “0”, otherwise you will not be able to distinguish the true zero values and the missing values)Īfter changing the import options corresponding to your data, click on “Import”. From our raw data above, you can see that missing values are simply empty cells, so leave NA to default or change it to “empty”. NA: how missing values are specified (default is empty cells).Change it to semicolon if your values are separated by “ ” From our raw data above, you can see that the delimiter is a comma (“,”). Delimiter: the character which separate the values.First Row as Names: specify whether the variables names are present or not (default is that variables names are present).However, if your file contains some blank rows at the top (or information you want to disregard), set the number of rows to skip Skip: specify the number of top rows you want to skip (default is 0).However, the main drawback with using specific names for datasets is that if, for instance, you want to reuse the code you created while analysing tennis data on other datasets, you will need to edit your code by replacing all occurrences of “tennis_data” by the name of your new dataset You could use more explicit names such as “tennis_data” if you are using data on tennis matches for example. I personally rename my datasets with a generic name such as “dat”, others use “df” (for dataframe), “data”, or even “my_data”.

Avoid special characters and long names (as you will have to type the name of your dataset several times).


#Stata citrix on mac how to import data file install#
As we have seen in this article on how to install R and RStudio, R is useful for many kind of computational tasks and statistical analyses.
