Importing data from stata

Hello everyone,

I am a beginner in the Rstudio and I have a problem with my data. I think that something is going wrong with the steps I follow to import my dataset in the Rstudio.

I want to import my dataset from stata into the R studio. I am doing the following steps:

  1. I am choosing "import dataset"-->from stata
  2. I find the file I want to import
  3. and then I click on the "import" button.

I can see my data at the top and left of the R studio.
Is this procedure ok? Because when I trying to plot a diagram [plot(ecdf(variable1))] the following message comes up:
Error in sort(x) : object 'variable1' not found

What am I doing wrong?

Thank you in advance
Best regards,
Ioanna

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.