0

I have data the looks like the following:

set.seed(42)
M <- matrix(rnorm(40),ncol=2)
M <- as.data.frame(M)

M2 <- reshape(data=M, varying=list(1:2), direction="long", times = names(M), timevar="A", v.names="B")

and I do a linear regression:

M2.lm = lm(B~A, data=M2)
summary(M2.lm)

which gives me the following output:

Call:
lm(formula = B ~ A, data = M2)

Residuals: Min 1Q Median 3Q Max -2.84838 -0.48550 -0.01096 0.82592 2.16619

Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 0.1919 0.2718 0.706 0.484 AV2 -0.4629 0.3843 -1.204 0.236

Residual standard error: 1.215 on 38 degrees of freedom Multiple R-squared: 0.03677, Adjusted R-squared: 0.01142 F-statistic: 1.451 on 1 and 38 DF, p-value: 0.2359

I would like to do a power analysis using the following:

pwr.f2.test(u = , v = , f2 = ., sig.level = .05, power = NULL)

But I do not know how to find u, v and f2 from the output.

Icewaffle
  • 101

0 Answers0