Displaying 20 results from an estimated 2000 matches similar to: "problem with using transace"
2006 May 24
2
Has Many Through + Join Model + Forms + Confused?
Hello,
I''m trying to implement something like the following scenario. I''ve got
"Alloys" (blends of metals), "Metals" and "Percentages" I want to implement
this using a join model, not using a has_and_belongs_to_many relationship.
(If i''m wrong about that, let me know).
Basically, i have the following tables:
Metals
id
name
Alloys
2011 Nov 04
1
add dynamic nested attributes without nested form gem
Hello people
In my rails 3.0.9 app I''m trying to add nested attributes
dynamically, but I don''t want to use "nested form gem"
So I found this example
https://github.com/alloy/complex-form-examples/blob/a234fde4419836f277d7e340657f1d8418911d68/app/helpers/projects_helper.rb
but this code doesn''t work
module ProjectsHelper
def
2010 Jan 18
1
does any package have the functionality of ace() from old acepack?
I found the old ace function (from acepack) valuable a couple of years ago
in helping to find a transformation of the response to approximate
additivity in smooth functions of the predictors.
ace used alternating conditional expectations, but I'm not overly fixated on
algorithms as long
as it works pretty well.
Is there another package that has that sort of functionality? I haven't been
2010 Sep 08
4
On init webrick get older rails version (suddenly)
Hi!
I''m running rails 2.3.8, confirmed by the prompt (rails -v)
I''m doing a project and on other occasions I have needed
install nested forms.
I followed the steps
(http://weblog.rubyonrails.org/2009/1/26/nested-model-forms)
This steps:
$ git clone git://github.com/alloy/rails.git
$ cd rails
$ git checkout origin/normalized_nested_attributes
$ cd ../..
$ ruby
2017 Aug 16
1
Bias-corrected percentile confidence intervals
Hi folks,
I'm trying to estimate bias-corrected percentile (BCP) confidence
intervals on a vector from a simple for loop used for resampling. I am
attempting to follow steps in Manly, B. 1998. Randomization, bootstrap
and monte carlo methods in biology. 2nd edition., p. 48. PDF of the
approach/steps should be available here:
https://wyocoopunit.box.com/s/9vm4vgmbx5h7um809bvg6u7wr392v6i9
If
2006 Sep 12
4
variables in object names
Is there any way to put an argument into an object name. For example,
say I have 5 objects, model1, model2, model3, model4 and model5.
I would like to make a vector of the r.squares from each model by code
such as this:
rsq <- summary(model1)$r.squared
for(i in 2:5){
rsq <- c(rsq, summary(model%i%)$r.squared)
}
So I assign the first value to rsq then cycle through models 2 through
2010 Jun 29
1
Model validation and penalization with rms package
I?ve been using Frank Harrell?s rms package to do bootstrap model
validation. Is it the case that the optimum penalization may still
give a model which is substantially overfitted?
I calculated corrected R^2, optimism in R^2, and corrected slope for
various penalties for a simple example:
x1 <- rnorm(45)
x2 <- rnorm(45)
x3 <- rnorm(45)
y <- x1 + 2*x2 + rnorm(45,0,3)
ols0 <- ols(y
2004 Feb 03
1
Error in f(x, ...) : subscript out of bounds
R-Listers:
I am doing a quasi-maximum likelihood estimation and I get a "subscript
out of bound" error message, Typically I would think this means that a
subscript used in the function is literally out of bounds however I don't
think this is the case. All I change in the code is a constant, that is
hard-wired in (not data dependent and not parameter dependent),
furthermore,
2005 Apr 21
2
apply vs sapply vs loop - lm() call appl(y)ied on array
Christoph --
There was just a thread on this earlier this week. You can search in the
archives for the title: "refitting lm() with same x, different y".
(Actually, it doesn't turn up in the R site search yet, at least for me.
But if you just go to the archive of recent messages, available through
CRAN, you can search on refitting and find it. The original post was from
William
2015 Feb 23
2
[Mesa-dev] [PATCH 2/2] nvc0/ir: improve precision of double RCP/RSQ results
Does this give correct results for special floats (0, infs)?
We tried to improve (for single floats) x86 rcp in llvmpipe with
newton-raphson, but unfortunately not being able to give correct results
for these two cases (without even more additional code) meant it got all
disabled in the end (you can still see that code in the driver) since
the problems are at least as bad as those due to bad
2005 Jun 02
2
confusion with boot
I think I am doing something wrong when I try to bootstrap R square
obtained from lm. My code is included below. No matter how many times I
run the simulation, I always get exactly the same result, the bias and
std.error are always zero. I would think that these values should be
non-zero. I would appreciate any suggestions as to what I am doing
wrong, or perhaps what I fail to understand.
R 2.1.0
2010 Apr 29
1
R CMD check Error after R CMD build for R-2.11.0
Dear UseR,
I get an error when I run "R CMD check" on my .tar.gz file package,
and I don't understand why since I don't obtain any error with "R CMD
check" on the package directory. Do you have any idea ?
$ sudo ./R-2.11.0/bin/R CMD check eqtl_1.1.tar.gz
and
$ sudo ./R-2.11.0/bin/R CMD --check-subdirs=no eqtl_1.1.tar.gz
return an Error
* checking for working
2005 Sep 06
2
Predicting responses using ace
Hello everybody,
I'm a new user of R and I'm working right now with the ACE function
from the acepack library. I Have a question: Is there a way to predict
new responses using ACE? What I mean is doing something similar to the
following code that uses PPR (Projection Pursuit Regression):
library(MASS)
x <- runif(20, 0, 1)
xnew <- runif(2000, 0, 1)
y <- sin(x)
a <- ppr(x, y,
2013 Feb 26
3
Merging value labels into indicator variable.
I have a vaiable named NAM having value : 1,2,3,4,5,6,7,8,9. I want to
make an indicator variable that will take value 1 if NAM=7 or NAM=8 or
NAM=9. How can I do that?
I usually do: Var001<- ifelse(NAM==7,1,0) for the simplest case.
[[alternative HTML version deleted]]
2016 Aug 05
2
Extra copies of objects in environments when using $ operator?
My understanding is that R will not make copies of lists if there is
only one reference to the object. However, I've encountered a case
where R does make copies, even though (I think) there should be only
one reference to the object. I hope that someone could shed some light
on why this is happening.
I'll start with a simple example. Below, x is a list with one element,
and changing that
2003 Jan 22
1
Intercept in model formulae
Hi,
I'm a new user of R and I'm trying to make a linear model from this kind of
dataset
x
[1] 16.87 19.93 25.85 20.94 17.06 19.49 19.93 25.45 27.74 20.15 25.81
21.06 17.17 20.03 25.50 27.79 20.44 16.88 19.93 25.79
z<-x-10
y
[1] 0.80 1.27 2.22 1.32 0.90 1.18 1.84 2.41 2.97 1.25 2.07 1.41 1.14 1.66
2.59 3.51 1.53 0.81 1.26 2.30
plot(x,y)
I want to be able to force the line of
2017 Aug 09
2
Fill in empty spaces modified
Hi All?
I was looking at a posting from June-17. I managed to solve it. However,
when I changed the example in the posting, my solution will work only once
at a time which was mentioned by Jim Lemon on his response to the original
posting. This means that my solution will have to be repeated as many times
as the maximum number of spaces on each gap; something that may not work
well for large
2013 Jan 11
4
count combined occurrences of categories
Dear all,
i would like to count the number of times where I have combined occurrences of the categories of 2 variables.
For instance, in the dataframe below, i would like to know how many times each author (au1, au2, au3 represent the first, second, third author) is associated with each of the category of the variable 'nam'. The position of the author does not matter.
nam <-
2009 Jan 30
3
paste together object names to pass it on to a function
Hello,
I have a maybe trivial question, but I simply don't understand well
enought how to work with text/strings:
I have a rather compelx data structure, a big list with several
sub-lists/dataframes and for certain calculations (which I do in
loops), I only need a certain group of sub-lists/dataframes, which I
want to specify with a name vector and paste together the object name
and pass it
2004 May 14
1
help with memory greedy storage
Hello,
I've a problem with a self written routine taking a lot of memory (>1.2Gb). Maybe you can suggest some enhancements, I'm pretty sure that my implementation is not optimal ...
I'm creating many linear models and store coefficients, anova p-values ... all I need in different lists which are then finally returned in a list (list of lists).
The input is a matrix with 84 rows