carefulLM: Calculate P value for F test from the anova table, catch...

Description Usage Arguments Value See Also

Description

Given names of a numeric x1 and a factor x2 variables in a data frame df calculate the P value for the F test from the anova table applied to linear regression. Use tryCatch to collect warnings and errors.

Usage

1
carefulLM(resp.vec.ind, exp.vec.ind, df)

Arguments

resp.vec.ind

index of the numeric response variable in a data frame df

exp.vec.ind

index of the explanatory variable in a data frame df

df

data frame

Value

p.value

P value or the error/warning message

statistic

Test statistic or the error/warning message

test.type

String indicating the test type: anova F test

See Also

anova,


moosik/snorm documentation built on May 23, 2019, 6:11 a.m.