Displaying 20 results from an estimated 800 matches similar to: "Random and fixed effect in linear model"
2012 Mar 13
2
"gplots" packages does not work
I had installed de "gplots" package and then I loaded the library but the
package did not work. I recieved a message like this:
> install.packages("gplots", dependencies = TRUE)
Installing package(s) into
‘/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
2005 Nov 20
1
use of the 'by' command & converting SPSS ANOVA/GLM syntax into R syntax
I have two questions I would appreciate assistance with:
(1) I believe "by" is the command used to split a file. In the following
example, "mydat" is the dataframe , "group" the variable I want to split
the analysis by & "WK1FREQ,WK2FREQ" the variables
attach(mydat)
by (GROUP)
cor.test (WK1FREQ,WK2FREQ)
I have also tried: (by (GROUP) cor.test
2007 Jan 16
1
nested hierarchical design
Dear R-Helpers,
I would like to know what syntax I need to use to do a nested anova for
1. a continuous variable and 2. count data (x out of y)
1. The first I used to do in SPSS and I would like to be able to do it
in R as well.
This is the hierarchical model I would like to use: a continuous
variable explained by factor A(fixed) + factor B(random) nested in A +
factor C (random) nested in
2007 Oct 11
2
Incompatibility Issues after updating CURRENT
Hi,
I''m using piston to manage rspec and rspec_on_rails in vendor/plugins.
----
~/work/simplify_md $ piston st vendor/plugins/
vendor/plugins/rspec
(svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec)
vendor/plugins/rspec_on_rails
(svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails)
----
After I ''piston update''d rspec and
2012 Mar 19
9
Efectos fijos y aleatorios en un modelo lineal
Hola a todos,
Tengo algunas dudas sobre como introducir en un modelo lineal factores
con efectos fijos y aleatorios. Mi diseño es el siguiente:
Factores
Line: 40 líneas de trigo (Fijo)
Rep: 3 Bloques (Aleatorio)
Year: 2 Años (Aleatorio)
Variable dependiente
alpha.ug.mg
Nota: Adjunto tabla de datos
Dentro del diseño, 'Rep' y 'Year' se considera de efectos aleatorios y
2011 Nov 26
4
SPSS -> R
I'm an SPSS user trying to make the transition to R.
Can someone help me translate the following SPSS code into R?:
GLM Total_tp1 Total_tp2 WITH Age Sex
/WSFACTOR=Time 2 Repeated
/METHOD=SSTYPE(3)
/CRITERIA=ALPHA(.05)
/WSDESIGN= Time
/DESIGN= Age Sex Age*Sex.
Also. can anyone recommend any resources to help SPSS users learn to things in R?
Thanks,
-kristi
[[alternative HTML
2007 Nov 04
4
Why can repeated measures anova with within & between subjects design not be done if group sizes are unbalanced?
Dear R people:
I wish to switch from SPSS to R, but there is one particular type of
ANOVA design that cannot be done in R. Or more likely, it can be
done, but it is nowhere documented.
The problem is typical for psychologists:
You have a repeated measures design with different groups of subjects.
Now, this can be done with the aov command, but the number of
subjects in both groups must be
2004 Jan 02
1
type III sum of squares - ssType
Hello,
It seems that, unlike Splus, the anova.lm function of R does not take the argument ssType=3 into account. How can one get an anova table with the adjusted sum of squares in R?
Thanks in advance,
Patrick Giraudoux
University of Franche-Comté
Department of Environmental Biology
EA3184 af. INRA
F-25030 Besançon Cedex
tel.: +33 381 665 745
fax.: +33 381 665 797
http://lbe.univ-fcomte.fr
2007 May 17
4
How to mock helpers in view specs ?
Hi all,
I am mocking the following Rails view (inside a partial):
<%= render :partial => "forums/forum",
:collection => forum_category.forums.readable_by(current_user? ?
current_user : nil) %>
My spec fails with the following message:
1)
ActionView::TemplateError in ''forum_categories/index (anonymous user)
should only render forums accessible to anonymous
2005 Jul 30
1
partial SS for anova
Hello,
I use lme4 package.
library(lme4)
fit=lmer(y ~ time+dye+trt+trt:time + (1|rep), data=dataset, na.action='na.omit')
anova(fit)
The anova gives sequential F-tests and sequential SS.
My question is: how I can get partial F-tests and partial SS?
For lm (not lmer)
anova(lm(y~x+z))
we can use
anova(fit, ssType=3)
but it is not work for lmer.
Natalia.
2007 Jan 29
2
Cryptic error message when no controller_name
Hi !
In the following spec:
context "A project owner" do
specify "can assign roles to other users" do
# ...
end
end
I get the following cryptic error message:
1)
NoMethodError in ''A project owner can assign roles to other users''
undefined method `session='' for #<Object:0xb741bed4>
2006 Dec 08
2
Windows Tempfile Fix Plugin
Hi all,
Yesterday, I had some problems reading JPG files in my tests. Turns
out the problem was that Windows Ruby doesn't set it's Tempfile to
work in binary mode. Since I deploy on Linux, that has never been a
big problem, but now I'm working on some software that works with
binary files exclusively.
Anyway, I am making this fix available as a Rails plugin.
The details can be
2006 Dec 08
2
Windows Tempfile Fix Plugin
Hi all,
Yesterday, I had some problems reading JPG files in my tests. Turns
out the problem was that Windows Ruby doesn't set it's Tempfile to
work in binary mode. Since I deploy on Linux, that has never been a
big problem, but now I'm working on some software that works with
binary files exclusively.
Anyway, I am making this fix available as a Rails plugin.
The details can be
2006 Oct 25
2
Isn''t it possible to stub / expect on :id ?
Hi all !
Running this:
@payout = stub_everything(:id => 141)
Payout.stubs(:find).with(@payout.id).returns(@payout)
Generates this warning:
./test/functional/payouts_controller_test.rb:22: warning: Object#id
will be deprecated; use Object#object_id
What am I missing ? :id is a fairly frequent method to override in
Rails-based applications.
I''m using Mocha from
2002 Feb 07
1
Help with replicating an old SPSS GLM analysis
Greetings.
I'm trying to replicate an analysis I did a few years ago, then in SPSS,
using the SPSS GLM command:
GLM
n_diffpt WITH age_i inc_i join_i work_i educ_i give_i cs_i
eff_i age_a inc_a join_a work_a educ_a give_a cs_a eff_a
/METHOD = SSTYPE(3)
/INTERCEPT = INCLUDE
/PRINT = PARAMETER ETASQ RSSCP GEF
/CRITERIA = ALPHA(.05)
/DESIGN =
age_i*age_a inc_i*inc_a
2007 Jan 24
7
Differences between assert_tag and assert_select
Hi all,
I can't seem to make assert_select work for the more complex cases for me.
Here's a sample:
# View
<%= link_to_remote 'Add new', :url => new_phone_url, :submit => 'phones_head' %>
# Generated code:
<a href="#" onclick="new
Ajax.Request('http://test.host/admin/parties/phone/new',
{asynchronous:true, evalScripts:true,
2007 Apr 06
2
Advantages of using :single_index ?
Hi all,
Google returns two results for this:
http://www.google.ca/search?q=acts_as_ferret+shared_index+option&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:fr:official&client=firefox-a
Both point to the ChangeLog, so I don''t really know if anybody used a
shared index. From the RDoc, I know the option makes AAF "use a
Ferret index that is shared by all classes..."
2006 Nov 28
2
Partial matches in expectations
Hi !
I would like to ascertain the following in a test case:
@template.expects(:content_tag).with(:fieldset, :__any_arguments__i_dont_care)
Is it possible to do so ? If so how ? If not, is it something the
community wants ? Is it useful ?
Thanks !
--
Fran?ois Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/
2007 Mar 27
1
Ticket #7124
http://dev.rubyonrails.org/ticket/7124
I just attached a patch against 1.2 that cleanly applies to trunk too.
This allows functional and integration tests to have the same
interface to the xhr/xml_http_request method. The patch also includes
a deprecation workaround when called without the appropriate
parameters.
If the patch could also be applied to the 1.2 branch, I would appreciate.
The
2009 May 01
1
Problem with qcc
Hi All,
Already searched the net for a solution, but couldn't find one.
The piston ring example works fine on my XP laptop and R installation.
However, using the dataset enclosed (I've also enclosed the script file
used) only type="S" works and both "R" and "xbar" don't. Entering ylim works
better but still control limits are not calculated.