search for: age_year

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

Did you mean: age_years
2006 Jan 25
0
Another crack at age calculations
I cobbled this together based on a few previous posts and some tinkering, nothing fancy (my first bit of Ruby infact) but it seams to work for my purposes. My questions is actually why can I call <%= h(child.age(child.dob)) %> in a view but not <%= h(child.age_year_month(child.dob)) %>? Both work fine in the console. Thanks for any insight, Hugh child.rb class Child < Person end person.rb class Person < ActiveRecord::Base def age(dob) unless dob.nil? years = Date.today.year - dob.year months = years * 12 months = months...
2018 Mar 23
1
restricted cubic spline in FGR function
Dear Thomas, I want to use evaluate effect of Age using restricted cubic form in the FGR function as Fgr.crr <- FGR(Hist(time, event) ~ rcs(Age_years), data=dat) It provides error. " Error in parse(text = termtext, keep.source = FALSE): .... 1: response ~ rcs(Age_years Do I need to change any of the R code? Regards Amalraj Raja The University of Aberdeen is a charity registered in Scotland, No SC013683. Tha Oilthigh Obar Dheathai...