Login or Register
Log in with
Forums
FAQ
Search in titles only
Search in General only
Advanced Search
Search
Home
Forums
Forums for Discussing Stata
General
You are not logged in. You can browse but not post. Login or
Register
by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the
FAQ
.
Announcement
Collapse
No announcement yet.
X
Collapse
Posts
Latest Activity
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Filtered by:
Clear All
new posts
Haile Girma
Join Date:
May 2024
Posts:
4
#1
Cross Sectional Data Analysis
09 May 2024, 15:04
How can I formulate a spreadsheet from cross-sectional data that is compatible for analysis by STATA?
Regards.
George Ford
Join Date:
Aug 2014
Posts:
3343
#2
09 May 2024, 16:46
variables names on top row.
import excel using datafile.xlsx, firstrow clear
Comment
Post
Cancel
Haile Girma
Join Date:
May 2024
Posts:
4
#3
10 May 2024, 00:31
The file is here below, but when I insert it in STATA it is unrecocnized. So, is there any solution?
the title is "determinants of migration"
Regards.
Attached Files
cause of migration.xlsx
(10.1 KB, 1 view)
Comment
Post
Cancel
George Ford
Join Date:
Aug 2014
Posts:
3343
#4
10 May 2024, 07:56
I can import it and looks exactly like the spreadsheet.
The data is a mess with strings for the first few variables. You'd have to clean that up.
If the data you have comes in that format, then you're better cleaning it in STATA so there's a full record.
Comment
Post
Cancel
Haile Girma
Join Date:
May 2024
Posts:
4
#5
10 May 2024, 21:51
Ok, Thanks!
Comment
Post
Cancel
George Ford
Join Date:
Aug 2014
Posts:
3343
#6
12 May 2024, 17:26
Code:
import excel using "cause of migration.xlsx", firstrow clear
Comment
Post
Cancel
Previous
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment