View source: R/STAR_frequentist.R
pvals | R Documentation |
For a linear regression model within the STAR framework, compute p-values for regression coefficients using a likelihood ratio test. It also computes a p-value for excluding all predictors, akin to a (partial) F test.
pvals(object)
object |
Object of class "lmstar" as output by |
a list of p+1 p-values, one for each predictor as well as the joint p-value excluding all predictors
# Simulate data with count-valued response y:
sim_dat = simulate_nb_lm(n = 100, p = 2)
y = sim_dat$y; X = sim_dat$X
# Select a transformation:
transformation = 'np'
#Estimate model
fit = lm_star(y~X, transformation = transformation)
#Compute p-values
pvals(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.