pvalue | R Documentation |
Calculate probability that a given climate signal is 'true' using either PDAICc or Pc.
pvalue(dataset, datasetrand, metric, sample.size)
dataset |
A dataframe containing information on all fitted climate
windows. Output from |
datasetrand |
A dataframe containing information on all fitted climate
windows using randomised data. Output from |
metric |
"AIC" or "C". Determine whether a value of PDAICc or Pc will be returned. |
sample.size |
Sample size of analysis. |
Returns a value representing the probability that a given climate window result is a false positive.
Liam D. Bailey and Martijn van de Pol
# Calculate PDAICc for the Mass dataset pvalue(datasetrand = MassRand, dataset = MassOutput, metric = "AIC", sample.size = 47) # Calculate Pc for the Mass dataset pvalue(datasetrand = MassRand, dataset = MassOutput, metric = "C", sample.size = 47)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.