Displaying 5 results from an estimated 5 matches similar to: "Logistic Regression"
2006 Jan 12
0
Multi Row validation... or running queries within Validate function?
Is there anyway to perform a query from within a validate function?
I need to verify that the sum of several rows does not exceed a certain
value eg:
class Entry < ActiveRecord::Base
belongs_to :day
belongs_to :project
def validate
totalhours = hours
samedayentries = self.find_by_day_id(day_id)
samedayentries.each do
Overriding date_select in local project to use custom value rather than blank for starting option...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a
behavior similar to what you get using date_select with the
:include_blank => true option where the first value in the dropdown is
"- Month -", "- Day -", or "- Year -" rather than a blank value for
the respective month, day, and year select fields.
I took a look at the ruby source for
2017 Mar 01
2
error en el cambio de formato desde factor a numerico USANDO LAPPLY
?Hola,
Es más fácil que todo eso...
Es que en tu fichero de entrada, la segunda fila son las unidades de las
variables que tienes en la primera fila, pero "R" al leerlas las considera
como un string que altera la clase de toda la columna cuando ésta es
numérica.
Simplemente eliminando esa segunda fila, las columnas acaban teniendo la
clase que deben..
2012 Nov 05
1
Post hoc tests in gam (mgcv)
Hi.
I'm analysing some fish biological traits with a gam in mgcv. After several
tries, I got this model
log(tle) = sexcolor + s(doy, bs = "cc", by = sexcolor) +log(tl)
sexcolor is a factor with 4 levels
doy is "day of year", which is modeled as a smoother
tl is "total length of the fish"
The summary of this models is (only parametric coefficientes):
Parametric
2012 Oct 18
3
Upper limit in nlsLM not working as expected
Dear all,
I am using the nlsLM function to fit a Lorentzian function to my experimental data.
The LM algorithm should allow to specify limits, but the upper limit appears not to work as expected in my code.
The parameter 'w', which is peak width at half maximuim always hits the upper limit if the limit is specified. I would expect the value to be in-between the upper and lower limit with