Email or username:

Password:

Forgot your password?
Top-level
Iris Young (he/they/she) (PhD)

@terri is the code excerpt rendering weird for just me or for everyone else too? I can't figure out what raw text would have rendered as these i`' bits. (I know very little html.)

Hereā€™s the original coding line:
Ā Ā Ā  replace event`iā€™ = 1 if delta_mct`iā€™ != 0 | spouse_delta_mct`iā€™ != 0
And hereā€™s the corrected coding:
Ā Ā Ā  replace event`iā€™ = 1 if (delta_mct`iā€™ != 0 | spouse_delta_mct`iā€™ != 0) & delta_mct`iā€™ != . & spouse_delta_mct`iā€™ != .
5 comments
JohnBJohnBJohnB

@iris @terri
that isnā€™t HTML.
Maybe Perl or R?
I guess the dot means ā€œleft the studyā€ - so donā€™t replace the value if either spouse left the study

Morten GrĆøftehauge

@JohnBJohnBJohnB @iris @terri I don't think those languages have a `replace` keyword? I can't find one at least.

Iris Young (he/they/she) (PhD)

@Dan @drgroftehauge @JohnBJohnBJohnB @terri re:html, I meant what could have picked up special characters and done something terrible and wrong with them in the article rendering. Agree Stata looks likely for the programming language. Looks vaguely SQL-y to me and that's as far as I interrogated it.

Iris Young (he/they/she) (PhD)

@Dan @drgroftehauge @JohnBJohnBJohnB @terri I think the i came from html <i> tags and the quotes and backticks from escaping the wrong characters. Which still doesn't answer what should have been inside those tags.

Go Up