powered by
Wrap quality statistic of identity relation from data.
# S3 method for data.frame wrapFTest( x, predictionColumnName, yColumnName, nParameters = 1, meany = mean(x[[yColumnName]]), ..., na.rm = FALSE, format = NULL )
formatted string and fields
data frame containing columns to compare
character name of prediction column
character name of column containing dependent variable
number of variables in model
(optional) mean of y
extra arguments (not used)
logical, if TRUE remove NA values
if set the format to return ("html", "latex", "markdown", "ascii", "docx")
d <- data.frame(x=c(1,2,3,4,5,6,7,7), y=c(1,1,2,2,3,3,4,4)) model <- lm(y~x,data=d) summary(model) d$pred <- predict(model,newdata=d) sigr::wrapFTest(d,'pred','y')
Run the code above in your browser using DataLab