[R] Help with effectsize package
Eric Berger
er|cjberger @end|ng |rom gm@||@com
Thu Jul 2 15:22:19 CEST 2020
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 using gmail.com>
wrote:
> 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
>
> --
> Emma Parrish, B.S. | Graduate Student Researcher
> SDSU/UC San Diego Joint Doctoral Program in Clinical Psychology
> Cognitive Dynamics Lab
> emma.m.parrish using gmail.com | (610) 428-6714
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list