Questions tagged [p-value]

In statistical significance testing the p-value is the probability of obtaining a test statistic at least as extreme as the one that was actually observed.

The p-value is a key concept in the approach of Ronald Fisher, where he uses it to measure the weight of the data against a specified hypothesis, and as a guideline to ignore data that does not reach a specified significance level. Fisher's approach does not involve any alternative hypothesis, which is instead the Neyman–Pearson approach. The p-value should not be confused with the Type I error rate (false positive rate) α in the Neyman–Pearson approach – though α is also called a "significance level" and is often 0.05, these terms have different meanings, these are incompatible approaches, and the numbers p and α cannot meaningfully be compared.

791 questions
0
votes
2 answers

need help extracting multiple p-values from aov

I know there are a lot of post about how to extract the p-value from an aov. However, I have a list with several thousand samples. i did an aov for each sample to compare two different treatments and now i am looking for a way to get a list with all…
soso
  • 11
  • 3
0
votes
1 answer

Getting p-values from fitdistrplus in R

I am not sure how to get the p-value from the gofstat function. I do see the **test which may have a conclusion of "not computed", "not rejected" and "rejected". Any help would be great. The data used in assumed to be continuous. Using the code…
megv
  • 1,421
  • 5
  • 24
  • 36
0
votes
2 answers

Calculate p-value in python using R

I want to calculate p-value in python using R.I am using this package rpy2.I am generating count_a and count_b on the fly,and calculate p-values along with it. When I run my script,python closes unexpectedly,and get this error message: "Error:…
Rgeek
  • 419
  • 1
  • 9
  • 23
0
votes
1 answer

Convert Z score to p value in MATLAB without statistics toolbox

I'm trying to convert a series of Z scores into 2-tailed P values in MATLAB. I can see many solutions online that use the MATLAB statistics toolbox, but I don't have this additional package. How can convert my Z scores to p values using only…
user2524828
  • 181
  • 1
  • 4
  • 15
0
votes
4 answers

How to find the p-value for two sets of data in R?

New to R, and I have two data sets -- they have the same x-axis values, but the y-axis varies. I'm trying to find the correlation between the two. When I use R to draw the ablines through the scatter plot, it gives me two lines-of-best-fit that…
Ryan
  • 501
  • 1
  • 12
  • 26
0
votes
2 answers

t.test statistics (mean, p-value) on matrix/data.frame rows in R

Given a matrix m how can I do a t.test on the rows/variable (testing if mean is different from zero) and get a matrix where each column corresponds to e.g. the t.test$statistic and t.test$p.value for the rows. Since some rows have several NAs I at…
user3375672
  • 3,728
  • 9
  • 41
  • 70
0
votes
1 answer

R return p-value from glm within cbind

Statistics and R noob wondering if there is there a way to add p-values from a glm onto the end of the output resulting from the following command: exp(cbind(OR = coef(mod1), confint(mod1))) Perhaps something like: summary(mod1)$coefficients[,4] I…
L Tyrone
  • 1,268
  • 3
  • 15
  • 24
0
votes
1 answer

How to make adf.test print more precise p-value in R

I make a simple cointegration function using add.test from tseries packages cointegration <- function(vals) { library(tseries) beta <- coef(lm(vals[,2] ~ vals[,1] + 0, data = vals))[1] names(beta) <- NULL res <- adf.test(vals[,2] -…
lui.lui
  • 81
  • 1
  • 7
0
votes
0 answers

How to find F and p-value in Linear Mixed models

I am still not very familiar with R and I would like to construct linear model of mixed effects using lmer function. We have 3 independent variables with 2 modalities each time: group (G3 and G5) frequency (LF and HF) conditions (NR and PH) and…
Ewa Karolina P
  • 11
  • 1
  • 2
  • 3
0
votes
1 answer

Probability calculation by Proc means T-test

I need to calculate P-values linked to these t-values will reflect the probability that they are equal to 0 by using PROC Means for each visit. Also I have only one classifying (i,e Treatment group=1). Alpha for this test is set to 0.05. Following…
ved_null_
  • 71
  • 2
  • 10
0
votes
1 answer

In data set, I want to change each element to p value

c<- c(1.88, 2.33, -2.4, -0.6) dim(c)<-c(2,2) I have a data set, 9X12 matrix. The data set is standardized to be normal, so I can compare each element. For better comparing, I want to change each value to p-value. How can I make it? (Please use…
user3027252
0
votes
1 answer

How get matrix of p-values for ks test and t test?

I am new with R. If you could help me that would be great. My problem is as follows: Lets say I have 5 groups, Group1, Group2, Group3, Group4 and Group5, each containing 100 data points. Now I want to compare these groups with each other, using…
0
votes
0 answers

Error in Proc Freq

I am have a data set with multiple visits with 2 treatment arms and a Vehicle group. Also i have a variable say "SSA" having two values 1 and 0. here 1 stands for responder and 0 for non-responder subjects. while performing Proc Freq for chi-square…
ved_null_
  • 71
  • 2
  • 10
0
votes
1 answer

T.test in R...getting multiple p values

I'm trying to do a T.test between two data sets.. This is 'Dataset1' TIME 5 10 15 20 25 Specimen no. 1 15.2 30.5 41 12.5 16.2 2 13.1 16.2 12.5 Na 13.2 3 …
Geller Bing
  • 15
  • 1
  • 5
0
votes
2 answers

What's the lowest number R will present before rounding to 0?

I'm doing some statistical analysis with R software (bootstrapped Kolmogorov-Smirnov tests) of very large data sets, meaning that my p values are all incredibly small. I've Bonferroni corrected for the large number of tests that I've performed…
N.M.
  • 1
  • 1
  • 1