![]() ![]() Plot.data $ variable <- factor( plot.data $ variable, levels =levels(with( plot.data, reorder( variable, - value)))) # Sort coefficients by value Plot.data $ p.value <- pnorm(abs( plot.data $ value), lower.tail = FALSE) * 2 # Calculate p-values for t-values Levels( plot.data $ variable) <- # Make coefficient names pretty Plot.data <- melt( values, id = "country ") # Convert to long Values $ country <- c( "All countries ", levels( barometer $ country.name)) # Add column with country names ![]() Values <- values # Remove taus only include actual coefficients Num.coefs <- length(attr(terms( form.expanded), "term.labels ")) # number of lhs coefficients Values <- ame(rbind(summary( ) $ coefficients,įUN = function ( x) summary( ]) $ coefficients)) # Create dataframe of t-values for combined model and all individual models # Figure 12: Grid plot for coefficient t-values (expanded) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |