| p_slr | R Documentation |
p-values associated with the simple linear regression model,
y = \beta_0 + \beta_1 X + \epsilon.
Focus is on the slope/intercept behavior of the model.
p_slr(
n,
beta,
sd_x,
sd_y,
beta0 = 0,
test = "x = 0",
gen_fun = gen_slr,
return_analysis = FALSE,
...
)
gen_slr(n, beta, sd_x, sd_y, ...)
n |
sample size |
beta |
slope parameter |
sd_x |
standard deviation of IV |
sd_y |
standard deviation of DV |
beta0 |
null value to test against |
test |
test to evaluate using |
gen_fun |
function used to generate the required X-Y data.
Object returned must be a |
return_analysis |
logical; return the analysis object for further extraction and customization? |
... |
additional arguments to be passed to |
a single p-value
Phil Chalmers rphilip.chalmers@gmail.com
p_glm, p_lm.R2
p_slr(n=100, beta = -0.0667, sd_x = 7.5, sd_y = 4)
## Not run:
p_slr(n=100, beta = -0.0667, sd_x = 7.5, sd_y = 4) |> Spower()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.