Combining Pulsar Timing data with $\texttt{MetaPulsar}$. The linearized timing model
Combining the data of multiple pulsar timing array (PTA) collaborations increases the sensitivity to nanohertz gravitational waves (GWs) and other signals correlated between pulsars. The International PTA (IPTA) has combined such data, but historically these projects have taken many years. We introduce $\texttt{MetaPulsar}$, a software package that ingests the $\texttt{.par}$ and $\texttt{.tim}$ files of individual data releases, and turns them into single consistent deterministic models for the combined datasets, compatible with both timing packages $\texttt{PINT}$ and $\texttt{Tempo2}$. We validate the method in four ways. First, we show for two pulsars that the linearized timing solution of a combined dataset does not depend on the parameter values in the $\texttt{.par}$. A mild exception is formed by the Shapiro-delay parameters. No combination considered requires a manual refit. Second, for PSR J0613$-$0200 we show that the residuals are explained by the timing model if we take intrinsic red-noise and dispersion-measure processes into account, and that the single-PTA timing posteriors agree with one another and with the combination, except for the parallax. Third, we quantify the consistency of the timing parameters measured by different PTAs with a two-sample tension statistic, for every pulsar that is observed by multiple PTAs. Finally, we carry out a gravitational-wave background search on the direct combination of the NANOGrav 9-yr, EPTA DR1 (v2.2), and PPTA DR2 data releases, the constituents of IPTA Data Release 2 (DR2). The combined dataset is assembled in under two hours, and the recovered amplitude and spectral index of the common process are consistent with the published IPTA DR2 result. With $\texttt{MetaPulsar}$, a joint PTA analysis can be prototyped as soon as the individual collaborations publish their data, instead of after a years-long reprocessing effort.