Displaying 20 results from an estimated 300 matches similar to: "lme, two random effects, poisson distribution"
2010 Sep 22
2
How to fix error: 'x' and 'y' lengths differ
Hi, im a student so still very new to R. Hope someone could help me out here
=)
They are 3 slug control products, bustaslug, product X and Y. Im ask to
explore the data by plot() and tapply(). But when i try to plot or use the
tapply command, it tells me that the x and y lengths differ. so im thinking
its because the data is unbalanced? Is there a simple command that i could
use to fix this?
2009 Oct 23
1
access elements of a named list using a factor
Hi
I have a factor 'f' and a named list 'jj'.
I want names(jj) to match up with levels(f).
How do I use levels(f) to access elements of jj?
> f <- factor(c("pigs","pigs","slugs"))
> f
[1] pigs pigs slugs
Levels: pigs slugs
>
> jj <- list(pigs=1:10,slugs=1:3)
My attempts to produce jj$pigs all give errors:
>
2011 Dec 01
1
Estimation of AR(1) Model with Markov Switching
Dear R users,
I have been trying to obtain the MLE of the following model
state 0: y_t = 2 + 0.5 * y_{t-1} + e_t
state 1: y_t = 0.5 + 0.9 * y_{t-1} + e_t
where e_t ~ iidN(0,1)
transition probability between states is 0.2
I've generated some fake data and tried to estimate the parameters using the
constrOptim() function but I can't get sensible answers using it. I've tried
using
2008 May 14
3
New blog application post slugs
Hello. I''m creating my own RESTful blog app. I am wondering about
creating post slugs. I think Wordpress creates a slug at post
creation time and stores the string in the database, then uses that
for URLs.
I read about the acts_as_sluggable strategy (http://
agilewebdevelopment.com/plugins/acts_as_sluggable) but I don''t like
having a number (the ID) in the URL.
Any
2010 Jun 21
4
Failing Routes in deployment
I have an app that has the following in the routes file:
namespace "admin" do
# ADMINISTRATIVE ROUTES ONLY
root :to => ''home#index''
resources :comments do
member do
get :approve
get :reject
end
end
resources :users do
member do
get :block
get :unblock
end
end
end
When browing to
2010 Nov 29
4
Error heroku: App Crashed
Hi ,
i developed a small application(which contails only static pages) . I
tried to host that on heroku .just when everything was finished when
i
opened my site i,e http://floating-moon-89.heroku.com/ i am getting
an
error as App Crashed..where did it gone wrong? pls help...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2006 Jul 18
2
how to generate calculated db fields
I''m trying to generate a "page slug" i.e. a url sanitized id from
some text in my model that I want to be saved into the database and
I''m not seeing how I can do it.
The closest I''ve come to getting this to work has been...
class Page < ActiveRecord::Base
attr :name
before_save :generate_slug
def generate_slug
self.slug = self.name.gsub
2003 Apr 22
0
Correct SE in a poisson model.
Hi all,
I'm here again with my newbies questions :(
I have a simple example:
count of slugs in two fields.
I need to make a barplot with mean and SE of mean.
So I have:
The mean:
> tapply(slugs,field,mean)
Nursery Rookery
1.275 2.275
The SE:
> tapply(slugs,field,sd)/sqrt(tapply(slugs,field,length))
Nursery Rookery
0.3651264 0.3508004
If the data has been normally
2011 Mar 19
5
Routing issue
Hi!
I have two models, artists and songs.
I have this in my route file:
resources :artists, :path => "ackord" do
resources :songs
end
Which gives me urls like this (I''m using https://github.com/norman/friendly_id
to create and manage slugs):
example.com/ackord/artistname/songs/songname-id
Now I want to remove the /songs part to get a url like this:
2015 May 21
2
[LLVMdev] How can I remove these redundant copy between registers?
Hi,
I've been working on a Blackfin backend (llvm-3.6.0) based on the previous
one that was removed in llvm-3.1.
llc generates codes like this:
29 p1 = r2;
30 r5 = [p1];
31 p1 = r2;
32 r6 = [p1 + 4];
33 r5 = r6 + r5;
34 r6 = [p0 + -4];
35 r5 *= r6;
36 p1 = r2;
37 r6 = [p1 + 8];
38 p1 = r2;
p1 and r2 are in different register classes.
A p*
2002 Feb 08
1
when does journal flush with data=journal
I'm trying to eek every last bit of performance out of a sync NFS server
using ext3.
I created a 400MB journal, for my data=journal disk. When copying a
200MB file to the machine, by the sound of the disk, it flushed data to
disk about 4 times, so, about every 50MB.
For the purposes of user experience, it would be great if this could be
tuned. I'd set it to just over a couple
2013 Feb 17
1
Error on installation of Ruby On Rails on QNAP TS809U-RP [Linux]
I am not sure where I should even begin troubleshooting this. I know a
little bit about Linux and am comfortable editing files and running
commands however definitely not a Linux guru. I have ipkg already installed
on the QNAP. I know absolutely nothing about ruby on rails. Thanks for any
help.
For those that are not familiar with a QNAP, ipkg is the same as apt-get or
yum in some Linux
2009 Oct 05
4
Friendly_id and Rake problem.
Hello there,
The plugin friendly_id (http://github.com/norman/friendly_id) has rake
tasks that you can call.
I''m using this plugin as a gem.
I''m trying this: rake friendly_id:make_slugs MODEL=Post
and it is rising this error: Don''t know how to build task
''friendly_id:make_slugs''
So the question is: how do I call a gem''s rake task?
David
2009 Feb 03
1
Can't compile on NSLU2 LE
Hi,
I keep getting the following on my slug no matter what version I try (1.2, 1.4, 1.6, 1.6svn):
...
make[2]: Leaving directory `/usr/portage/distfiles/svn/trunk/menuselect/mxml'
gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a
menuselect.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
distcc[19221] ERROR: compile (null) on
2009 Jun 23
3
subset POSIXct
Hi,
I have a data frame with two columns: dt and tf. The dt column is
datetime and the tf column is a temperature.
dt tf
1 2009-06-20 00:53:00 73
2 2009-06-20 01:08:00 73
3 2009-06-20 01:44:00 72
4 2009-06-20 01:53:00 71
5 2009-06-20 02:07:00 72
...
I need a subset of the rows where the minutes are 53. The hour is
immaterial. I can not find a wildcard
2002 Oct 18
6
winbind, getent and wbinfo
Guess I'll ask again . . .
[Samba] Winbind and groups Bub Slug bub1slug@hotmail.com
Sun Oct 13 02:35:01 2002
Previous message: [Samba] Strictly Private.
Next message: [Samba] Winbind and groups
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I'm trying to get a samba server which is all by itself, No Windows DCs, or
even windows shares at all, to play nice
2008 Feb 12
3
Rsync to a Read Only file system
I think your product is awesome, but I am experiencing an unexpected
behaviour.
$ rsync -avviPH /Users/alan/Desktop/rsync_test\ Folder/
root@slug::Downloads
opening tcp connection to slug port 873
sending daemon args: --server -vvlHogDtpre30.16i "--log-format=%i" --
partial . Downloads
sending incremental file list
.d..t..g... ./
rsync: failed to write xattr user.rsync.%stat for
2005 Mar 05
3
routes inconsistency?
Hello,
As a small excercise in learning rails, I''ve been porting a very
simple website from SSI to rails (yep, a bunch of static files that
were previously served with a tiny bit of SSI magic are now served by
a database-backed rails, it''s total overkill, I know). Part of the
reason is that I''m trying to move from apache to lighttpd, and
lighttpd''s SSI for
2011 Sep 24
4
Heroku Slugsize shot up drastically
Hi,
Locally my application is 7MB without tests and logs, etc. The .git
folder is 29 MB. I also have no gems / plugins in vendor folder. 95%
of images sit on S3. However on committing to Heroku it shows ----->
Compiled slug size is 62.7MB
What is wrong? It happened?
To add more context my .gitignore file is .bundle, db/.sqlite3, config/
database.yml, log/.log, tmp/, .idea, .redcar,
2017 Sep 25
2
[PATCH v5 REPOST 1/6] hw_random: place mutex around read functions and buffers.
A bit late to a party, but:
On Mon, Dec 8, 2014 at 12:50 AM, Amos Kong <akong at redhat.com> wrote:
> From: Rusty Russell <rusty at rustcorp.com.au>
>
> There's currently a big lock around everything, and it means that we
> can't query sysfs (eg /sys/devices/virtual/misc/hw_random/rng_current)
> while the rng is reading. This is a real problem when the rng is