# P2NDat Script

Converts a data set in PoPy format to Nonmem format. See Nonmem to PoPy Data conversions using P2NDAT and N2PDAT Scripts for a walk through example.

## Full Structure of a P2NDat Script

- METHOD_OPTIONS
  - py_module
- FILE_PATHS
  - input_popy_file
  - output_nonmem_file
- INPUT_POPY_FIELDS
  - time_field
  - id_field
  - type_field
  - dv_fields
  - amt_fields
  - rate_fields
  - dur_fields
  - dose_labels
- OUTPUT_NONMEM_FIELDS
  - comment_prefix
  - column_names
  - time_field
  - id_field
  - evid_field
  - dv_field
  - mdv_field
  - amt_field
  - rate_field
  - dur_field
  - cmt_field
  - obs_cmt_numbers
  - dose_cmt_numbers
- OUTPUT_OPTIONS
  - drop_fields