search for: themodel

Displaying 6 results from an estimated 6 matches for "themodel".

2008 Jul 29
0
handling multiple lookup tables in rails
...lookups/CollectionType/lookups #lookups/Gender/lookups map.resources :lookups, :path_prefix => ''lookups/:mdl'' ex Lookup Controller class LookupsController < ApplicationController # GET /lookup # GET /lookup.xml before_filter :setup_tables def index @lookups = @theModel.find(:all) respond_to do |format| format.html # index.html.erb format.xml { render :xml => @lookups } end end # GET /lookup/1 # GET /lookup/1.xml def show @lookup = @theModel.find(params[:id]) respond_to do |format| format.html # show.html.erb...
2006 Oct 19
1
predict.Arima question
...rima I found arima model for a data set: x={x1,x2,x3,...,x(t)} arima_model = arima(x,order=c(1,0,1)) I am forecasting the next N lags using predict: arima_pred = predict(arima_model,n.ahead = N, se.fit=T) If I have one more point in my series, let's say x(t+1). I do not want to recalibrate themodel, I just want to forecast the next N-1 lags using the same model for x={x1,x2,...x(t)} but without recalibrate arima. How to do it using arima + predict.Arima ? My problem is that I am trying to fit arima models by brute force ( trying lots of combinations for p and q and chosing the best model b...
2010 Apr 27
3
Problem calculating multiple regressions on a data frame.
...e tried to change the na.action with no success (na.pass, na.fail, na.exclude... all give the same error message) I have also tried to follow the approach suggested by Charles Sharpsteen (http://www.mail-archive.com/r-help@r-project.org/msg74759.html) with similar results. The code is as follows: theModels <- by( theTestLineal, list( theTestLineal$ids, zongTestLineal$variable), function( dataSlice ){ linMod <- lm( value ~ seqMonth, data = dataSlice ) # Slope and intercept may be recovered from the output of the coef() function: intercept <- coef( linMod )[1] slope <- coef( linMod )[2]...
2006 Jan 15
1
Best Idiom for form using multiple models
What''s the best idion when you need to present the user a single form, whose data is loaded into several models? Issues: * How to display the errors together * How do you handle one model being valid but not the other * How do you do validations if one model''s validity depends on the other (I guess transactions could be used to handle #2 and #3...) -- Posted via
2012 Sep 06
0
Logit regression, I observed different results for glm or lrm (Design) for ordered factor variables
Dear useR's, I was comparing results for a logistic regression model between different library's. themodel formula is arranged as follows: response ~ (intercept) + value + group OR: glm( response ~ (intercept) + value + group , family=binomial(link='logit')) lrm( response ~ (intercept) + value + group ) ROC( from = response ~ (intercept) + value + group , plot='ROC') the...
2008 Mar 18
11
"Why not MockEverthing" or why use fixtures for all tests?
Hello fellow RSpec users. Before you all start warming up your flame throwers please let me explain my Subject line. I''ve been working over 4 months on a large Rails project with a few other developers. Test coverage was spotty at best, though they *were* RSpec tests. One of the other developers and I had started adding more tests, mostly controller tests using the methodology