Displaying 20 results from an estimated 200 matches similar to: "Mixed-model with paired design & covariates"
2006 Aug 16
1
Creating a comments system for multiple types of content
Hi all
My site has news entries, it has a party calendar and it has a blog.
Now I''d like to create a commenting system that in fact is quite simple,
but I wanna use it for all these 3 types of content.
My question: how can I do that? I maybe could add an association to all
three types in the comment model:
class Comment < ActiveRecord::Base
belongs_to :news_item
belongs_to
2024 Feb 02
2
List of Words in BioWordVec
Is there a way to extract list of words in BioWordVec in R
Thank you
Tjun Kiat
[[alternative HTML version deleted]]
2006 Jan 19
8
I can''t figure out how to solve this one
I am creating an application to run a fishing tournament (see http://
www.ruby-forum.com/topic/51209 for a little background)
Now I am running into an issue trying to calculate a leader board.
each participate can enter multiple fish but only the largest fish
per a given species counts towards the overall score. My entries
table looks like this:
2009 Nov 08
2
Simple 2-Way Anova issue in R
Hello, I'm new to R and have been following many guides including the two-way
anova (http://www.personality-project.org/r/r.anova.html). Using that
walkthrough including the supplied data I do str(data.ex2) and receive the
appropriate types of data as follows:
> str(data.ex2)
'data.frame': 16 obs. of 4 variables:
$ Observation: int 1 2 3 4 5 6 7 8 9 10 ...
$ Gender :
2007 Nov 16
4
Newb - variable returns # sign?
Hi Gurus-
I want to return the variety from the species table based on the
active record link to inventory table
class Species < ActiveRecord::Base
has_many :inventories
end
class Inventory < ActiveRecord::Base
belongs_to :species (this is the singular and the plural, so that''s
OK)
end
My inventory_controller looks like:
def show
@inventory =
2012 Feb 20
1
how to print km square in the form of km2
Hello,
This is Elaine.
I am drawing a plot with x-axis label with "km square" as the unit.
Now I want to print km square in the form of km2 and output "2" as the
uppercase.
Please kindly help suggest command to show the uppercase.
Thank you.
Elaine
[[alternative HTML version deleted]]
2012 Nov 12
0
Adding Spatial Correlation Strucutre to Logistic Regression / Contingency Analysis
>From what I can tell by reading forum posts etc., this is not a trivial
issue. An answer in 2008 indicated some directions, but I'm curious whether
any developments have been made since then.
In my data set I have 182 observations with a binomial response, a 2-level
explanatory factor, and x and y coordinates. By visually inspecting the
spatial distribution of standardized residual error
2006 Jan 12
4
How do you create a tree strucutre with ActiveRecord
I want to build an application that has the concept of administrative
domains. What I mean by this is that administrators have access to
different data, based on what domains they are a member of. The domain
strucutre is hierarchical. Here is an example:
- MLB
- AL
- East
- Yankees
- Red Sox
...
+ Central
+ West
- NL
+ East
+ Central
+ West
Now
2006 Jan 19
2
NOOB: Using locals to pass data to a SQL query
I want to show a users entries based on there login id. I have tried
this:
View:
<div id="myfish">
<%= render :partial => ''myfish'', :locals => {:user => session
[:user].id } %>
</div>
Partial:
<% for entry in @entries %>
<table border ="0" CELLSPACING="0">
<tr class="<%= alternate
2015 Aug 02
3
ayuda con análisis de supervivencia
Hola a todos,
-Estoy estudiando el efecto de dos genotipos (~tratamientos) en la aparición de síndrome metabólico (MetS) con datos longitudinales recogidos a tiempo 0,7,10,15,20 y 25 años.
-He hecho un dataframe con las siguientes variables
MetS: Síndrome Metabólico (Si=1,No=0)
bmi: Indice de masa corporal (IMC) cuando se produce la conversión a MetS+ . Para los que permancen MetS-, esta variable
2009 Sep 28
1
xyplot help - colors and break in plot
Dear List,
I am new to lattice plots, and am having problems with getting my plot to do what I want. Specifically:
1. I would like the legend to have the same symbols as the plot. I tried simpleKey but can't seem to get it to work with autoKey. Right now my plot has dots (pch=19) and my legend shows circles.
2. I have nine groups but xyplot seems to only be using seven colors, so two
2017 Aug 19
4
My very first loop!! I failed. May I have some start-up aid?
Dear all,
I have a data similar to this:
myframe<- data.frame (ID=c("Ernie", "Ernie","Ernie","Ernie"),
Timestamp=c("24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00",
"25.09.2012 10:00"), Longitude=c("8.481","8.482","8.483","8.481"),
2006 Jan 10
0
find_by_sql + partials question
Ok now that I have find_by_sql love working for my "Top 10 List" I
want to make them a bit more DRY. Tis is what I have so far:
Model:
def self.topfish
find_by_sql["select species.name,
length,species.multiplier*length as score,caught_on from entries join
species on species_id = species.id where species_id = ? order by
score DESC LIMIT 10", species]
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
Thank you for providing the example code... for the request of running it
multiple times it would have helped if you could have confirmed that the
example ran through without errors... there were a lot of mistakes in it.
Look into using the reprex package to check your example next time.
I don't do this kind of analysis... I really don't know what to expect
from the functions. The
2008 Feb 21
1
linebreaks in mathplot
Dear HelpeRs,
I would like to do sg similar to:
plot(c(0,100), c(0,100), xaxs="i", yaxs="i", type="n")
txt <- paste("a =", a, "%\n b =", b, " km2", sep="")
text(95, 95, txt, adj=c(1,1))
just with the "km2" formatted with 2 in a superscript.
I thought
txt <- substitute("a = "*a*" %\n b
2009 Aug 07
2
Listing shared mailboxes with a domainpart
Hy!
I am currently configuring a new mailserver using postfix and dovecot
1.2.1. The filesystem strucutre in my spool directory is
user1/
user2/
domain/info/
domain/office/
user1 and unser2 are ordinary users mailboxes, the latter two contain
the virtual mailboxes for info at domain and office at domain as created by
postfix. I want these virtual mailboxes (all of them are in maildir
format) to
2005 Nov 09
2
Variograms and large distances
Hello R list,
I need to compute empirical variograms using data from a large
geographic area (~10^6 km2). Although I could not find a specific
reference, I assume that both geoR and gstat calculate distances among
data points assuming points are on a flat surface (using the Pythagorean
Theorem). Because the location of my data is large and located near the
pole, assuming that latitude and
2006 May 17
4
weird prototype error when using RJS
I''m trying to set up a nested menu strucutre using RJS
I want to be click on an item, have not have the whole page refresh but
just have the menu <li id=''Selection''> refreshed
1 - my model is using :acts_as_tree
2 - in my controller I have the following.. it''s just a barebones start
at being able to dig DOWN through the chilren
def renderMenu
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
[answers inline]
On 18 August 2017 at 20:08, Dagmar <Ramgad82 at gmx.net> wrote:
>
> myframe<- data.frame (ID=c("Ernie", "Ernie","Ernie","Ernie"),
> Timestamp=c("24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00",
> "25.09.2012 10:00"),
2010 Aug 16
3
parkcall: How to remove announcement.
Hello all,
I want to park calls using the callpark application, but I don't want to
hear the saydigit when the called is parked.
To resolve this issue I use the following instruction in the dialplan:
exten => _8XX,1,ParkAndAnnounce(|1000|local/10 at default|)
Because local/10 at default is not defined to a peer I get a lot of warnings.
:(
Is there a better way to resolve this