A method for transmitting a reference signal, wherein the method is performed by a terminal of a wireless communication system comprising a base station and at least another terminal, the method comprising: receiving, from the base station, configuration information related to a configuration of a first demodulation reference signal, DMRS, and a second DMRS for demodulating uplink data transmitted by the terminal; receiving, from the base station, configuration information related to a configuration of a third DMRS and a fourth DMRS for demodulating uplink data transmitted by another terminal; and transmitting the first DMRS, the second DMRS and the uplink data to the base station through at least one antenna port based on the configuration information, wherein the first DMRS, the second DMRS and the uplink data are transmitted by using frequency hopping in a subframe, wherein the frequency hopping is performed in units of one hop, and wherein one hop is a physical layer resource region constituted by a number of consecutive Orthogonal Frequency Division Multiplexing, OFDM, symbols and frequency subcarriers in which the first DMRS is mapped, wherein the first DMRS and the second DMRS are equally configured to a third DMRS and a fourth DMRS of the another terminal, wherein equally configuring the DMRS means that the number and locations of OFDM symbols constituting the first DMRS and the third DMRS are the same as each other, the number and locations of OFDM symbols constituting the second DMRS and the fourth DMRS are the same as each other, and the mapping types of the first DMRS, the second DMRS, the third DMRS and the fourth DMRS are the same as each other, wherein the first DMRS and the second DMRS are transmitted through an antenna port different from the third DMRS and the fourth DMRS of the another terminal to perform uplink multi user, MU, -multiple-input multiple output, MIMO, with the another terminal, and wherein in a case that the base station transmits data, to the terminal device, in a physical downlink shared channel, a power ratio of the second DMRS and the data is configured equal to a power ratio of the first DMRS and the data. receiving, from the base station, configuration information related to a configuration of a first demodulation reference signal, DMRS, and a second DMRS for demodulating uplink data transmitted by the terminal; receiving, from the base station, configuration information related to a configuration of a third DMRS and a fourth DMRS for demodulating uplink data transmitted by another terminal; and transmitting the first DMRS, the second DMRS and the uplink data to the base station through at least one antenna port based on the configuration information, wherein the first DMRS, the second DMRS and the uplink data are transmitted by using frequency hopping in a subframe, wherein the frequency hopping is performed in units of one hop, and wherein one hop is a physical layer resource region constituted by a number of consecutive Orthogonal Frequency Division Multiplexing, OFDM, symbols and frequency subcarriers in which the first DMRS is mapped, wherein the first DMRS and the second DMRS are equally configured to a third DMRS and a fourth DMRS of the another terminal, wherein equally configuring the DMRS means that the number and locations of OFDM symbols constituting the first DMRS and the third DMRS are the same as each other, the number and locations of OFDM symbols constituting the second DMRS and the fourth DMRS are the same as each other, and the mapping types of the first DMRS, the second DMRS, the third DMRS and the fourth DMRS are the same as each other, wherein the first DMRS and the second DMRS are transmitted through an antenna port different from the third DMRS and the fourth DMRS of the another terminal to perform uplink multi user, MU, -multiple-input multiple output, MIMO, with the another terminal, and wherein in a case that the base station transmits data, to the terminal device, in a physical downlink shared channel, a power ratio of the second DMRS and the data is configured equal to a power ratio of the first DMRS and the data.