Skip to content

Help with effectsize package

2 messages · Emma Parrish, Eric Berger

#
Hello all,
I am having some trouble with the effectsize package in R. I am trying to
convert Z scores to percentiles using the convert_z_to_percentile command.
This same code (below) has worked for 3 other variables, but not these 2
variables

However, when I use the function to convert other z scores to percentiles,
I get numbers that are exponential (e.g., 1.877030e+01) instead of a
percentile. Has this happened to anyone else, and if so, how were you able
to fix it?

Here is my code:

#generate z-scores for SSPA using the scale() function - this part of the
code is successful
dat$varA_z <- scale(dat$varA_tot, center = TRUE, scale = TRUE)
dat$varB_z <- scale(dat$varB_tot, center = TRUE, scale = TRUE)

#Convert z-scores to percentile for UPSA using effectsize package tool,
convert_z_to_percentile
#for some reason this isn't working
dat$varA_per <- (convert_z_to_percentile(dat$varA_z)*100)
dat$varB_per <- (convert_z_to_percentile(dat$varB_z)*100)

Thank you in advance for any help you may be able to offer!
Emma
#
Hi Emma,
You write
"I get numbers that are exponential (e.g., 1.877030e+01) "

1.877030e+01

is scientific notation. It means 1.877030 * 10 ( = 18.7703).

This seems like a perfectly good percentile.

HTH,
Eric


On Thu, Jul 2, 2020 at 4:12 PM Emma Parrish <emma.m.parrish at gmail.com>
wrote: