Displaying 20 results from an estimated 500 matches similar to: "regression on large file"
2005 Oct 31
2
Cascading Comboboxen and GO button ?
Hello all,
I have two comboboxen, comboA is popultaed when :controller/list is
retrieved first time.
When comboA is selected, I want to auto-populate comboB (modelB belongs_to
modelA).
The population of tableC (modelC belongs_to modelB and belongs_to modelA)
should not populate until a "GO" button is clicked (link_to with submit).
Help? I need an example of how to filter the post
2009 Oct 12
1
Speed up and limit memory usage of lm()
Hi all
I have been doing series of linear regression models lm(). In this case the execution time and memory usage becomes a huge issue. I have therefore been trying to speed the process and limit the memory usage.
Here follows part of the code do give better understanding of what I am doing:
modela <- lm(RSSYS10 ~ RS_AGE + RS_AGESQ + SEX + RS_BMI)
frssys <-
2007 Dec 13
4
please explain find_with_ferret, retrieve_records, :include and :conditions
Hello, I''m using find_with_ferret to search multiple models and it
works great. The trouble is I need to filter the results
using :include and :conditions.
I get two errors depending on the syntax I use in the search. Reading
the source, I see the retrieve_records method seems to filter
the :include and :conditions so that they only apply to the relevant
model when searching
2006 Mar 31
1
model comparison with mixed effects glm
I use model comparison with glms without mixed effects with
anova(modelA,modelB),
with mixed effects glm (glmmPQL), this doesn't work. Is there a way to
compare model fits with glmmPQL's?
Paula M. den Hartog
Behavioural Biology
Institute of Biology Leiden
Leiden University
[[alternative HTML version deleted]]
2006 Mar 10
1
Validate fields and display errors from two models?
Hi,
I have here a problem I''ve been working at for a little while but I
can''t seem to get the error messages to appear correctly.
My form looks something like this for "ModelA":
[errors_for "modelA"]
[form for "modelA"]
[text "modelA" "fieldname1"]
[text "modelB" "fieldname2"]
[submit]
[/form]
The reason
2007 Dec 19
3
multi-model search best practices
Hi folks.
If I am indexing ModelA and ModelB and I want to search both of them,
I usually just pick one arbitrarily and use it for #multi_search.
Is there a slicker pattern, regarding from which model to invoke
#multi_search? Can it be invoked directly from the Ferret library?
Has anyone put together some sort of "dummy" search class?
Thanks for any ideas.
John
2012 Nov 01
2
Name assignment in for loop
Dear helpeRs-
I'm using a for loop to create a series of models.
I'm trying to assign a name to each model created,
using the loop index. The loop gets stuck at the name
of the model, giving the error "target of assignment
expands to non-language object". The linear model runs
without error; only the name is problematic.
Here is the current loop syntax. The use of dat
2006 Apr 06
5
Using helper method of another model
I have a template that belongs to a certain model (model A). I need to
call a helper method of a different model (model B). Then I need the
helper method of B to call a helper method of model C.
I tried using "include" and "require" and using namespaces, but I got
"undefined method". What is the way to do it?
--
Posted via http://www.ruby-forum.com/.
2008 Jun 30
0
Making a copy of a model and all its associated records.
Hi all,
I have a question regarding the duplication of a model and it''s
associations. For example, if I have ModelA and it has_many SubModelAs
and has_many SubModelBs associated with it. Each of the SubModels a
belongs to ModelA. Is there a quick way of copying ModelA and the
structure that lays below it? In the end I''ll then end up with ModelB
which is a copy of A, and it has
2011 Oct 20
2
Access other model attributes directly with has_one, belongs_to ?
So, I have 2 models A and B that share 5 common attributes and all other
attributes are different. So I wanted to extract these 5 out into one
common table and use has_one, belongs_to to knit it back together. So
now there are 3 tables with 1 having the shared properties, we''ll call
this table C.
Table A
id
dollar_amount
Table B
id
quantity_on_hand
Table C
id
version
My question is,
2010 Mar 25
1
how to deal with vector[0]?
Hi,
I have a vector with 4 elements, e.g., tau_i=c(100,200,300,400), but
potentially tau_i[0]=0. In a "for" loop,
tau_i=c(100,200,300,400)
m=4
tau_i[0]=0 # <------- ?
P_i=1
for(i in 2:m)
{
P_i = P_i*(tau_i[i-1]-tau_i[i-2])
}
Error in P_i = P_i * (tau_i[k - 1] - tau_i[k - 2]):
replacement has length zero
Unfortunately, I can add this potential element into
2011 Jan 19
3
lme-post hoc
Hi all,
I analysed my data with lme and after that I spent a lot of time for
mean separation of treatments (post hoc). But still I couldn’t make
through it. This is my data set and R scripts I tried.
replication fertilizer variety plot height
1 level1 var1 1504 52
1 level1 var3 1506 59
1 level1 var4 1509 54
1 level1 var2 1510 48
2 level1 var1 2604 47
2 level1 var4 2606 51
2 level1 var3
2003 Oct 31
1
constrained nonlinear optimisation in R?
Hello. I have searched the archives but have not found anything. I
need to solve a constrained optimisation problem for a nonlinear
function (“maximum entropy formalism”). Specifically,
Optimise: -1*SUM(p_ilog(p_i)) for a vector p_i of probabilities,
conditional on a series of constraints of the form:
SUM(T_i*p_i)=k_i for given values of T_i and k_i (these are
constraints on
2012 Mar 20
1
How to write and analyze data with 3 dimensions
Suppose I have data organized in the following way:
(P_i, M_j, S_k)
where i, j and k and indexes for sets.
I would like to analyze the data to get for example the following
information:
what is the average over k for
(P_i, M_j)
or what is the average over j and k for P_i.
My question is what would be the way of doing this in R.
Specifically how should I write the data in a csv file
and how do I
2006 Feb 24
1
predicting glm on a new dataset
Hello together,
I would like to predict my fitted values on a new dataset. The original dataset consists of the variable a and b (data.frame(a,b)). The dataset for prediction consists of the same variables, but variable b has a constant value (x) added towards it (data.frame (a,b+x).
The prediction command returns the identical set of predicted values as for the original dataset yet I would have
2010 Dec 15
4
Generacion de binomiales correlacionadas
Buenas tardes,
Estoy interesado en generar observaciones de una distribucion binomial
bivariada en la que hay _cierto_ grado de correlacion (denotemoslo rho).
Podria por favor alguien indicarme como hacerlo en R?
Este es el contexto. Supongamos que se tienen dos experimentos en los que la
variable respuesta _sigue_ una distribucion binomial, i.e., X_i
~Binomial(n_i, p_i), i=1,2 y que, por ahora,
2007 Jan 24
1
solving a structural equation model using sem or other package
I am trying to work my way through the book "Singer, JD and Willett, JB, Applied Longitudinal Data Analysis. Oxford University Press, 2003" using R. I have the SAS code and S-Plus code from the UCLA site (doesn't include chapter 8 or later problems). In chapter 8, there is a structural equation/path model which can be specified for the sem package as follows
S <- cov(al2)
2008 Sep 26
0
self-referential tags, has_many_polymorphs
Hi,
I''m looking to add tagging to an application, and I would like to allow
self-referential tags, so that I can tag my tags. With the goal of
generating a flexible tag hierarchy.
After some googling it looks like acts_as_taggable is not the best piece
of code, and I''m hoping to use the has_many_polymorphs plugin from
http://github.com/fauna/has_many_polymorphs/tree/master.
2005 Sep 22
1
R2WinBUGS: Data loading error
Hi R-Help!
I am trying to use R2WinBUGS but I get the following error message in WinBUGS
(and there must be something wrong with my R statement as I tried it directly in
WinBUGS and it worked):
display(log)
check(C:/Documents and Settings/Daikon/Roche/pop_model.txt)
model is syntactically correct
data(C:/Documents and Settings/Daikon/Roche/data.txt)
expected key word structure
compile(7)
...(and
2006 Jul 07
2
Diverging results with SPSS
Dear List,
I apologize in advance if this is silly. I tried to replicate an analysis I
did previously in SPSS using R, and was surprised to find different results.
So my question is: shouldn't the following SPSS syntax
REGRESSION
DEPENDENT INC89
/METHOD=ENTER hiedyrs experien SE93rec.
Yeld the same results of the following R command
modelB<-lm(INC89~HIEDYRS+EXPERIEN+SE93REC)
I