Skip to content

Instantly share code, notes, and snippets.

@karan19100
Created July 18, 2020 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karan19100/308b32fb4a565e51160eeeef49b1682f to your computer and use it in GitHub Desktop.
Save karan19100/308b32fb4a565e51160eeeef49b1682f to your computer and use it in GitHub Desktop.
new_dataset_by_karanshah
newdata2 <- subset(newdata1, OBS != 159 & OBS != 166 & OBS != 169,
select=c(HEMAGLOBIN, HEMATOCRIT))
HEMAGLOBIN_CENT = scale(newdata2$HEMAGLOBIN, center=TRUE, scale=FALSE) # center the variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment