Hello,
I have wide-structured data for answers on a 4 item scale at 2 time points. Please see data details below
promis_pc43 is 1 of 4 questions
m1 or m3 indicates the timepoint
Is it possible to reshape this to long data where I have a time variable (1 or 3) and the answer for each question at each time point per study ID?
Thank you!
Contains data
obs: 310
vars: 9
----------------------------------------------------------------------------------------------
storage display value
variable name type format label variable label
----------------------------------------------------------------------------------------------
record_id str8 %9s record_id
promis_pc43_2~1 byte %10.0g promis_pc43_2_m1
promis_pc44_2~1 byte %10.0g promis_pc44_2_m1
promis_pc45_2~1 byte %10.0g promis_pc45_2_m1
promis_pc47_2~1 byte %10.0g promis_pc47_2_m1
promis_pc43_2~3 byte %10.0g promis_pc43_2_m3
promis_pc44_2~3 byte %10.0g promis_pc44_2_m3
promis_pc45_2~3 byte %10.0g promis_pc45_2_m3
promis_pc47_2~3 byte %10.0g promis_pc47_2_m3
----------------------------------------------------------------------------------------------
Related Posts with Reshape long with multiple variables
Panel dataDear Members I hope all is well. Please, I would like to know that : 1-) Should I use Xtset Command …
Staggered Difference in Difference*Hi My data has the following setup. I have individual level data for years 1995, 2000, 2005, 2010 a…
Exporting shapefiles with nonconsecutive, multipart polygons using GeotoolsI am using the -geotools- command to export polygon features to an ESRI shapefile. The input geograp…
Creating Composite Variable (from non-mutually exclusive categorial variables)Hi All, I am quite new to Stata. I have five variables which each ask whether cannabis has been con…
Margins not estimableHello! I am trying to look at the effect mandatory elections (Valplikt) has on satisfaction with dem…
Subscribe to:
Post Comments (Atom)
0 Response to Reshape long with multiple variables
Post a Comment