I've been using Stata 17 for my research and after analyzing and cleaning I need to use R for a specific reason but when I'm using the following command to read the data , it drops a huge chunk of observations without following any pattern. Can anyone tell me is it the problem of stata 17 or there is any fault in my way coding to read the data in R ?
This is the following method of code I'm using to read the data created from stata 17 in R :
#
library(tidyverse)
library(readstata13)
dat <- as_tibble(read.dta13("edited treat.dta"))
#
Any kind advice would be much appreciated
Related Posts with Dropping a huge chunk of observation after making R read the data created from Stata 17
P for trend in MV regressionhi all, basic question - if I am running an MV regression as below, where can I find the "P for tren…
Generating and exporting summary table to ExcelHello, I am trying to produce a table that offers some summary statistics (Ns and %s, and averages, …
coefplot helpHi all, I am newer to Stata, using coefplot. Ive looked at coefplot help which has given me a good o…
sureg compare COX time-to-event regression comparison between 2 groupsHi, first post, my mentor told me to run 'sureg' to compare my estimates from two COX regressions sp…
gen id = _nDear All, Consider the following case, Code: clear set seed 12345 set obs 20000000 gen id = _n We c…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping a huge chunk of observation after making R read the data created from Stata 17
Post a Comment