search for: yourmodels

Displaying 20 results from an estimated 35 matches for "yourmodels".

Did you mean: yourmodel
2011 Apr 11
2
Plotting a quadratic line on top of an xy scatterplot
Dear Listserv, Here is my latest in a series of simple-seeming questions that dog me. Consider the following data: x <- read.table(textConnection("temperature probability 0.11 9.4 0 2.3 0.38 8.7 0.43 9.2 0.6 15.6 0.47 8.7 0.09 12.8 0.11 9.4 0.01 7.7 0.83 8 0.65 9.3 0.05 7.4 0.34 10.1 0.02 4.8 0.07 9.1 0.6 15.6 0.01 8.4 0.9 9.6 0.83 8 0.12 8.4 0.01 8 0 5 0.11 9.7 0.41 7.4 0.05 9.4 0.09
2006 Jan 17
5
simple question
How do I pass parameters from one controller to another during redirect_to command? I want to pass both model and non-model objects. The solution I use is via session, but I rather pass it as parameters to the redirect_to Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
15
How should I pick a random entry from the database?
Hi guys. Total newbie here. I''ve been doing web stuff since 1996 but only began the foray into scripting last year. I haven''t got my skull completely 360 degrees around OOP yet. It''s just me here (in Japan) and there are no Ruby groups in my area (never mind any in English). I''ve got a database table - real simple: question, answer, and id fields - and I
2006 Jun 25
3
Sorting results by column
I have the acts_as_ferret plugin installed. Everything searches great, but I would like to limit the results (i.e. by ''end_date'') and sort them (by ''end_date''). ''end_date'' is a valid column in my "posts" table. Here''s the code I have already: @posts = Post.find_by_contents(params[:query]) params[:query] comes from a
2012 Mar 06
1
PLS Error message
Hi, I work with hyperspectral remote sensing data and I try to built a pls model with this data. I already built the model but if I try to calculate the RMSEP and R2 with a test data set I get the following error message: Error: variable 'subX' was fitted with type "nmatrix.501" but type "nmatrix.73" was supplied The problem is that I don't get the message for
2007 Jan 10
2
Get fields in a generator
I am making a generator, and I want make a partial form with all columns the of table. How made for get count of columns, and how made for get each columns, and also to show the name of column? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2009 Jul 21
2
Machinist - having problems stubbing an after_create filter
Hi all I''m moving to using Machinist in my rspec tests and am having a problem with an after_create callback method that i need to stub out. It seems like calling ClassName.make will trigger this callback before i''ve had the chance to stub it. Can i stub it in my blueprint for that class? Or, can i stub the method for all instances of the class before i call ClassName.make?
2006 May 01
12
pagination in acts_as_ferret
I''m just wondering where I would put the pagination for search results when using "acts_as_ferret". At the moment my search code is.. def search @query = params[:query] || '''' unless @query.blank? @results = Tutorial.find_by_contents @query end end Cheers SchmakO -- Posted via http://www.ruby-forum.com/.
2007 Feb 06
2
Which method to use to get content from index with a_a_f?
Hi everybody, After staring at the a_a_f API for quite sometime now, I decided it''s time to ask... Which method should I use to get content from the index without using highlight? Consider the following controller action: def preview if params[:search].blank? # normal case @text = @myfile. # which method do I use here to get the :text from the index??? else # if we come from
2011 Aug 21
2
how to improve summary.lm
Hello, I need a shorter summary.lm, instead of -------------------------------------------- Call: lm(formula = E$t ~ E$cfs) Residuals: Min 1Q Median 3Q Max -0.239674 -0.007694 0.006430 0.014330 2.496551 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -1.994e-02 1.419e-04 -140.5 <2e-16 *** E$cfs 1.675e-05
2006 Jun 02
3
Advice, why value_before_type_cast in FormHelper?
I am wondering why is in creating text fields with form_helper used value_before_type_cast instead of attribute value for field value? I set rails enviroment so date fields are in european format (dd.mm.yyyy) and would like to have same format in forms, but because of value_before_type_cast is called, form fields are filled with ''yyyy-mm-dd'' or timestamp integer, etc.
2011 Jan 24
2
how to get loglik parameter from splm package?
splm package is a r implemention of spatial panel data models. and the loglik paremeter is most important infomation for splm methods. but i found the loglik always been null ,it's craze to get right estimation in splm with null loglik. Any one knows the splm package and can get the right loglik ? please help me. thanks -- View this message in context:
2006 Jul 18
4
How can I extract information from list which class is nls
Hello! I work with : R : Copyright 2006, The R Foundation for Statistical Computing Version 2.3.1 (2006-06-01) On Windows XP Professional (Version 2002) SP2. At this moment I use the function "nls" combined with a selfStar model (SSmicmen, related to Michaelis-Menten equation, and provided by the "stats" package). When I realise the following operation (cf. p 59 of the
2011 Dec 10
2
p-value for hazard ratio in Cox proportional hazards regression?
Hi, I'm new to R and using it for Cox survival analysis. Thanks to this great forum I learned how to compute the HR with its confidence interval. My question would be: Is there any way to get the p-value for a hazard ratio in addition to the confidence interval? Thanks, Thierry -- Thierry Panje Visiting Student Researcher Department of Psychology Stanford
2006 Jan 13
4
How to add virtual fields in model
I want to add virtual fields in a model. table: field1 field2 I want to add field3 which is field1*2 + field2 I know tihs can be achieved in View, but I want it in model. Then I will pass this model to PagerRenderer to paginate. How to achieve this? thanks -- Posted via http://www.ruby-forum.com/.
2006 Jan 17
2
How to run direct sql
How can i run and get the value from the following sql: select avg(my_field) from my_table where which_year=''0506'' and which_week <= 21 and my_foreign_key_id=10 cheers -- Posted via http://www.ruby-forum.com/.
2011 Dec 01
1
question about plsr() results
Hi, With some help I learned how to use plsr(Y~x, 2, data=my) function in R (and build "my" from vector "Y" and matrix "x"). But still I have question about results interpretation. In the end I want to construct prediction function in form: Y=a1x1+a2x2 But I do not understand how to do it. Documentation do not describe this. Thanks for help. ;) [[alternative HTML
2007 Aug 22
2
Access table names
Hello, Anyone know if there is a way to get all of the column names from the tables usinf rub on rails? Thanks again -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2012 Aug 09
2
validate_format_of message
I have validates_format_of :name, :with => *my regex*, :message => "That''s wrong" The validation works but the message does not get displayed when the user enters invalid data. Does anyone have any ideas how to fix it? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2011 Jan 25
2
Extracting SSE from lm
Apologies for this simple question - Given the number of comparisons I need to do it has become somewhat laborious to compute the SSE manually. I first have to extract the coefficients, build the model and run the model on the data. So far I haven't found any method in R that will do this for me. Is there a method that I haven't seen, or is there a small function I could write that would