[R] Problem: No p-value for a point-baserial correlation with R
jrkrideau at inbox.com
Sat Apr 16 15:54:44 CEST 2016
Welcome to R-help
Please have a look at
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html for some suggestions on how to ask questions here.
In particular we probably need to know what packages have the biseral.cor() & cor.biseral() functions and some sample data.
Read the part about dput() carefully. This is the best way to provide sample data to R-help.
BTW try a str(mydata) and check to see that you have the factor levels you think you do.
Kingston ON Canada
> -----Original Message-----
> From: d.maiori at windowslive.com
> Sent: Sat, 16 Apr 2016 11:39:47 +0200
> To: r-help at r-project.org
> Subject: [R] Problem: No p-value for a point-baserial correlation with R
> Dear community
> I'm pretty new to R and I'm trying to do a Point-baserial correlation for
> a nominal dichotomous variable with a interval scaled variable. It works
> fine, but the output just shows me the correlation and nothing else
> (p-Value would be important).
> I tried it with the following codes:
> - biseral.cor()
> - cor.biseral()
> - I also tried a polyserial() I've found on this question page:
> Problem: It's not working (telling me y has fewer than 2 levels) and it
> would also be for a ordinal dichotomous variable, but I only have a
> nominal dichotomous variable.
> In the forum if found following Syntax that I've tried out:
> It seams to work because I don't get any error messages but I'm not
> getting an output either.
> I'm really thankful for every help I could get on this topic or tips
> where I can find out and learn how to find a correlation with a p-value
> in R for a nominal dichotomous and an interval scaled variable.
> Thanks in advance and have a nice weekend!
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
More information about the R-help