Differences between revisions 1 and 2
Revision 1 as of 2023-06-09 14:49:56
Size: 253
Comment:
Revision 2 as of 2025-10-24 17:35:17
Size: 245
Comment: Rewrite
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The '''`replace`''' command replaces values of an existing variable. '''`-replace-`''' overwrites values of an existing variable.

Stata Replace

-replace- overwrites values of an existing variable.


Usage

replace foo = 1
replace foo = 1 if bar==1
replace foo = 1 in 1/10


CategoryRicottone

Stata/Replace (last edited 2025-10-24 17:35:17 by DominicRicottone)