Displaying 20 results from an estimated 900 matches similar to: "Select components of a list"
2011 Jun 21
5
please help for mgcv package
i read a book from WOOD, there's an example which is talking about the
pollutant.
library(gamair)
library(mgcv)
y<-gam(death~s(time,bs="cr",k=200)+s(pm10median,bs="cr")+s(so2median,bs="cr")+s(o3median,bs="cr")+s(tmpd,bs="cr"),data=chicago,family=Possion)
lag.sum<-function(a,10,11)
{n<-length(a)
b<-rep(0,n-11)
for(i in 0:(11-10))
2012 Feb 13
2
finding and describing missing data runs in a time series
Hi -
 I am trying to find and describe missing data in a time series. For instance, in the library openair, there is a data frame called "mydata":
library(openair)
head(mydata)
  date   ws  wd nox no2 o3 pm10    so2      co pm25
1 1998-01-01 00:00:00 0.60 280 285  39  1   29 4.7225  3.3725   NA
2 1998-01-01 01:00:00 2.16 230  NA  NA NA   37     NA      NA   NA
3 1998-01-01 02:00:00
2011 Aug 13
2
linear regression
dear R users,
my data looks like this
         PM10       Ref   UZ     JZ         WT   RH   FT   WR
1   10.973195  4.338874 nein Winter   Dienstag   ja nein West
2    6.381684  2.250446 nein Sommer    Sonntag nein   ja  Süd
3   62.586512 66.304869   ja Sommer    Sonntag nein nein  Ost
4    5.590101  8.526152   ja Sommer Donnerstag nein nein Nord
5   30.925054 16.073091 nein Winter    Sonntag nein
2005 Mar 26
1
lme: random effects of a quadratic term
Hello,
I am estimating the following model:
so2.lme<-lme(so2~1+I(alcadakm^2)+dia,data=subjectes2,na.action=na.omit)
And when I try to plot the random effects of the quadratic term with
respect to a covariate (mam) I get an error:
> so2.lmeRE<-ranef(so2.lme,augFrame=T)
> plot(so2.lmeRE,form=I(alcadakm^2)~mam)
Error in plot.ranef.lme(so2.lmeRE, form = I(alcadakm^2) ~ mam ) : 
	Only
2008 May 21
2
an unknown error message when using gamm function
Dear everyone,
I'm encountering an unknown error message when using gamm function:
>         fitoutput <-
gamm(cvd~as.factor(dow)+pm10+s(time,bs="cr",k=15,fx=TRUE)+s(tmean,bs="cr",k=7,fx=TRUE)
+
,correlation=corAR1(form=~1|city),family=poisson,random=list(city=~pm10),data=mimp)
 Maximum number of PQL iterations:  20
iteration 1
iteration 2
iteration 3
iteration 4
2000 Sep 06
2
reusing external functions across libs
Hi,
I am searching for a way to solve the following problem:
I want to use an external function, defined in a dyn.load()ed shared
object, in another dyn.load()ed shared object.
Currently I have to take the sources (Fortran) from one libraries src/
directory and copy them into the src/ dir of the other library, resulting
in two copies of this function. This is bad for maintanance and maybe
also
2006 May 08
1
Help on zoo and datetime series
Hello,
i would like to import this txt file:
Giorno;PM10
2006-01-01 10:10;10.3
2006-02-02 20:22;50.3
2006-03-03 23:33;20.1
.........
As it's an irregular time series i use zoo as follow:
require(zoo)
z <- read.table("c:\\1.csv", sep=";", na.strings="-999", header=TRUE)
q <- zoo(z$PM10, strptime(as.character(z$Giorno),"%Y-%m-%d %H:%M"))
At this
2019 May 16
3
ALTREP: Bug reports
Hello Luke and Gabriel,
Thank you very much for your quick responses. The explanation of STDVEC is
very helpful and I appreciate it! For the wrapper, I have a few new
questions.
1. Like Luke said a mutable object is not possible. However, I noticed that
there is one extra argument *deep* in the function duplicate. I've googled
all the available documentation for ALTREP but I did not find
2019 May 16
3
ALTREP: Bug reports
Hello,
I have encountered two bugs when using ALTREP APIs.
1. STDVEC_DATAPTR
>From RInternal.h file it has a comment:
/* ALTREP support */
> void *(STDVEC_DATAPTR)(SEXP x);
However, this comment might not be true, the easiest way to verify it is to
define a C++ function:
 void C_testFunc(SEXP a)
> {
> STDVEC_DATAPTR(a);
> }
and call it in R via
> a=1:10
> >
2008 Aug 26
1
lattice: plotting an arbitrary number of panels, defining arbitrary groups
R Friends,
I'm running R2.7.1 on Windows XP.
I'm trying to get some lattice functionality which I have not seen
previously documented--I'd like to plot the exact same data in multiple
panels but changing the grouping variable each time so that each panel
highlights a different feature of the data set. The following code does
exactly that with a simple and fabricated air quality data
2004 Dec 22
2
GAM: Overfitting
I am analyzing particulate matter data (PM10) on a small data set (147
observations).  I fitted a semi-parametric model and am worried about
overfitting.  How can one check for model fit in GAM?
 
Jean G. Orelien
2006 Aug 10
6
Getting started w/ Ruby on Rails
Hi,
I would like to get started with RoR, since it seems to be a terriffic 
platform for Webdevelopment. However, I''m unsure what "level" you need 
to be on in terms of programming to get started?
Best regards,
Gustav
-- 
Posted via http://www.ruby-forum.com/.
2012 Oct 19
3
Newly installed version; can't run lm function
New installation seems to have behavior I cannot figure out.  Here is illustrative sequence where I load a small data set (test) from Crawley's files and try to run a simple linear model and get an error message.  Oddly, R reports that the variable 'test$ozone' is numeric while, after attaching test, the variable ozone is not numeric.  Can someone please help?  This behavior is
2015 Sep 21
3
New software based on libvirt
Hello,
I'm introducing to you the decentralized cloud Cherrypop.
Combining libvirt and LizardFS (as of now) it becomes a cloud completely 
without masters. Thus, any node is sufficient for the cloud to be up
and therefore no wasted resources and no single point of failure.
It's still pretty crude software but will work with some tinkering. Hope 
you try it and like it!
For more
2006 Jul 28
2
Delete has_many_and_belongs_to_many relation
Hi there,
Just a simple question I guess, but I am unable to find an anwser...
How to delete a hmabtm relation?
Any help will be appreciated :)
Thanks,
Fabrice.
-- 
Posted via http://www.ruby-forum.com/.
2011 Dec 23
2
cast in reshape and reshape2
> library(reshape2)
> x = melt(airquality, id=c('month', 'day'))
With reshape I can cast with multiple functions:
> library(reshape)
> cast(x, month+variable~., c(mean,sd))
   month variable       mean         sd
1      5    ozone  23.615385  22.224449
2      5  solar.r 181.296296 115.075499
3      5     wind  11.622581   3.531450
4      5     temp  65.548387  
2006 Aug 12
5
In place editing on a list - not passing ID through
I want to do in-place edits on a list of data, but I''m having trouble 
getting the ID passed through to the controller.
I use this in my view to create the field:
<% for frame in @frames %>
  ...
  <%= in_place_editor_field :frame, :price %>
<% end %>
and this produces the following in my output:
<span class="in_place_editor_field" 
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items
class Accounts < ActiveRecord::Base
  has_many :items, :through => :projects, :source => :items
  has_many :late_items, :class_name => ''Item'', :through => :projects,
:conditions => [''due_on < ?'', Time.now], :source => :items
end
class Projects <
2006 Mar 14
3
Check whether externam URL is valid?
Hey,
I have users entering URLs into my app, is there anyway in which I can 
check to see if the URLs actually point to something before saving the 
user input? Maybe a kind of ''ping''-action that returns true on success?
(btw: does anyone of a tentative release date for Rails1.1? I''ve been 
slobbering all over my RailsRecipes book and I can''t wait! Also, Scott
2019 Jan 13
2
Samba 4 users - UID/GID - or how to migrate
Hello,
I try to migrate my old SAMBA Installation to a new Installation. SAMBA 
is running. But my Windows users can see the shares but cannot open Files.
My old Installation /etc/samba/smb.con
...
        workgroup = DUCK
         server string = %h server (Samba, Ubuntu)
         interfaces = eth0 192.168.1.200/255.255.255.0 localhost
         bind interfaces only = Yes
         security =