Hi,
So I have browsed the forum, but could not find any solution to my problem so I hope that you guys can help me(:
I need to append two datasets and use the command append using... But i get the error message that "variable startdate is str19 in master but double in using data". Startdate is the variable that makes the problems
In the main data-file the variable startdate is string; type: str19, format: %19s
in the file i want to append to my main file startdate is; type: double, format: %tcdd-Mon-CCYY_HH:MM:SS
In my main file the variable startdate is string and is structured the following way when looking in the data editor
2019-10-08 15:17:16
2019-12-09 18:02:42
2019-10-01 09:19:40
2019-10-01 08:46:35
2019-10-01 14:43:02
2019-10-01 15:18:03
2019-10-07 08:03:57
2019-10-07 15:58:58
2019-10-08 08:30:31
2019-10-08 08:33:16
2019-10-08 09:13:11
2019-10-08 10:38:38
I have tried in a various of ways to make one varyable string or the other double, but cannot get it right.
Any help is highly appreciated,
Thanks!
Related Posts with Help with appending files with same variable in two formats (tostring/destring)
Two part model with instrumental variableHi: I am using a two part model with a binary dependent variable and a binary endogenous regressor.…
Stratified Wilcoxon Mann Whitney Generalised Odds Ratios for Repeated Measures DataDear Statalist, Hope you're all well. I have a dataset with repeated measures of the modified Rank…
Practicum due soon/autocorrelation unbalanced panel data: xtreg, cluster, xtregar, xtpcse??Hi all! I am struggling a bit to figure out which is the best command to use for OLS on unbalanced …
SEM - insignificant direct path vs. significant indirect pathsDear Forum, I am conducting SEM analysis in Stata and I have specified a well-fitting measurement m…
Problems with controls and fixed effects in DIDHi, I'm currently using triple difference to analyse the effect of minimum marriage age legislation…
Subscribe to:
Post Comments (Atom)
0 Response to Help with appending files with same variable in two formats (tostring/destring)
Post a Comment