search for: average_rating

Displaying 2 results from an estimated 2 matches for "average_rating".

2007 Apr 13
0
mixin behavior
...et of summary data. So I defined a module (messy, I know): --- module RatingTotals::StoryRatingTotals def refresh_story_totals(date = Date.new(2007, 1, 1)) # Removed most the code. ratings = Rating.find(:all, :select => ''rateable_id, AVG(rating) as average_rating, COUNT(id) as count '', :conditions => ["rateable_type = ''story'' AND created_at >= ? ", date], :group => ''rateable_id '') totals = [] ratings.each do |rating| totals <...
2012 Oct 02
0
Error messages when attempting to calculate polychoric correlation matrices using the psych package
Dear Professor Fox, Apologies for my oversight relating to the polychor command and thank you for your advice. I turned to the polychor command when trying to find an equivalent for the polychoric command found in the psych package (I am following a procedure outlined in Gadermann, Guhn & Zumbo, 2012 that uses this command rather than the polycor package) . The polychoric command is returning