Hi, guys,
I am a new user for package R2winbugs. When I run the code a=bugs(...), an
error message always comes out, see below:
Error in file(con, wb) : cannot open the connection
In addition: Warning messages:
1: In file.create(to[okay]) :
cannot create file 'c:/Program
Oh. I understand now. There is nothing wrong with the logic. It is the
syntax.
library(AppliedPredictiveModeling)
*Warning message:*
*package ‘AppliedPredictiveModeling’ was built under R version 3.1.1 *
set.seed(3433)
data(AlzheimerDisease)
adData = data.frame(diagnosis,predictors)
Thanks Max and Dennis. Based on the syntax change I got the result for the
PCA part also.
training2 - training[,grepl(^IL,names(training))]
preProc - preProcess(training2,method=pca,thresh=0.8)
test2 - testing[,grepl(^IL,names(testing))]
trainpca - predict(preProc, training2)
testpca -
Hello!
I am trying to figure out how to extract the model equation when using deriv3
with nls.
Here is my example:
#
# Generate derivatives
#
Puro.fun2 - deriv3(expr = ~(Vmax + VmaxT*state) * conc/(K + Kt * state + conc),
name = c(Vmax,VmaxT,K,Kt),
On 2014-09-16 12:35, PIKAL Petr wrote:
So if result of menu is 0 (you did not choose anything) you can either
stay with 0, then switch does not return anything or add 1 and let
evaluate something meaningful specified in second and following
positions of switch command.
Thanks for your
Thank you, it is exactly that.
I have followed your idea of chunks (1 GB chunks, on the safe side), and
appended them. Worked like charm, thank you.
--Maxime
From: Stefan Evert (Mailing Lists)
stefa...@collocations.demailto:stefa...@collocations.de
Date: mercredi 17 septembre 2014 15:39
To:
Hi,
I am a new user of r software. I intend to do quantile regressions with
complex survey data using replicate method. I have ran the following
commands successfully:
mydesign
-svydesign(ids=~IDSCHOOL,strata=~IDSTRATE,data=TUN,nest=TRUE,weights=~TOTWGT)
bootdesign -
When R starts in GUI (e.g., /Applications/R.app/Contents/MacOS/R) on
my Mac OS X 10.7.5, the startup configuration in .Rprofile works fine.
However, when R starts on the terminal (e.g.,
/Library/Frameworks/R.framework/Resources/bin/R), it does not work at
all. What could be the reason for the
I am dealing with data frames that have thousands of columns and hundreds of
thousands of rows and only need a few specific columns from the data. The data
take various formats, but normally are tab-delimited.
I have written the following which is working as expected. However, because I�m
so
Hi
I would like to know how to use R in our commercial business application
which we plan to host in cloud or deploy on customer's premise.
1. Using R and its package, does it enforce that my commercial business
application should be distributed under GPL, as the statistical derivation
(output)
It is hard to say because we do not have enough information. R has
approximately 6,000 packages and you have not told us which ones you are using.
You have not told us much about your data and you have not told us where to
find the query from August 2006. The basic problem is that your fit is
Hi to all members of the list,
I have a data frame with subjects who can get into a certain study from
2010-01-01 onwards. Small example:
DF - data.frame(id=as.factor(1:3), born=as.Date(c(1939/10/28, 1946/02/23,
1948/02/29)))
id born
1 1 1939-10-28
2 2 1946-02-23
3 3 1948-02-29
Hi!
I want to have a function that assigns NAs to certain values of my
variable var in the dataset d. This doesn't work:
missings=function(x) x[x==998|x==999]-NA
missings(d$var)
table(d$var, useNA=always)
0 1 999 NA
220 752 321 5264
I don't get any error messages, but d$var
I tried with a different mirror, but nothing changed...
Any other idea?
Thanks anyway
-- Davide
2014-09-17 10:39 GMT-04:00 Jeff Newmiller jdnew...@dcn.davis.ca.us:
Try a different mirror? Precise is getting kind of old... they may not be
keeping all of the old files on that mirror.
You need to assign the output of missings() to something. For that
matter, missings() needs some output.
d - data.frame(a=1:5, b=6:10, var=c(1, 1, 998, 999, 2))
missings - function(x) {
x[x==998|x==999]-NA
x
}
d$var - missings(d$var)
d
a b var
1 1 6 1
2 2 7 1
3 3 8 NA
4 4
On Sep 18, 2014, at 4:36 AM, Pasu pasupat...@gmail.com wrote:
Hi
I would like to know how to use R in our commercial business application
which we plan to host in cloud or deploy on customer's premise.
1. Using R and its package, does it enforce that my commercial business
application
Frank,
Dates are extremely difficult. I recommend you do not attempt to do
your own data computations with paste().
Use the lubridate package.
install.packages(lubridate)
library(lubridate)
Read the end section of
vignette(lubridate)
From that you will most likely be wanting one of these
Hi,
On Sep 18, 2014, at 10:13 AM, Doreen Mueller doreen.muel...@dza.de wrote:
Hi!
I want to have a function that assigns NAs to certain values of my
variable var in the dataset d. This doesn't work:
missings=function(x) x[x==998|x==999]-NA
missings(d$var)
table(d$var, useNA=always)
On 18/09/2014 2:35 PM, Marc Schwartz wrote:
On Sep 18, 2014, at 4:36 AM, Pasu pasupat...@gmail.com wrote:
Hi
I would like to know how to use R in our commercial business application
which we plan to host in cloud or deploy on customer's premise.
1. Using R and its package, does it enforce
On Sep 18, 2014, at 3:42 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote:
On 18/09/2014 2:35 PM, Marc Schwartz wrote:
On Sep 18, 2014, at 4:36 AM, Pasu pasupat...@gmail.com wrote:
Hi
I would like to know how to use R in our commercial business application
which we plan to host in
Just wanted to acknowledge this. It's a known issue, and one that has been
tricky to solve, because it's platform-specific, so it's probably some sort
of bug in the abstraction (GDK).
On Wed, Sep 17, 2014 at 12:26 AM, François Rebaudo
francois.reba...@legs.cnrs-gif.fr wrote:
Hi,
The following
The only reason that *should* happen is if there's an .Rprofile in the
directory you're in when you start R.
Where *exactly* is the .Rprofile file you want loaded, what directory are you
starting from, and what does R say is the user's home directory? Did you make
*any* changes to
Dear All,
I have a table of 4 columns and many millions rows separated by tab-delimited.
I don't have enough memory to read.table in that 1 Gb file. And actually I have
12 text files like that. Is there a way that I can just randomly read.table()
in 10% of rows ? I was able to do that using
As a start, make sure you specify the 'colClasses' argument. BTW,
using that you can even go to the extreme and read one column at the
time, if it comes down to that.
To read a 10% subset of the rows, you can use R.filesets as:
library(R.filesets)
db - TabularTextFile(pathname)
n -
here is a reproducible example, mostly from ?withReplicates. i think
something would have to be done using return.replicates=TRUE to manually
compute survey-adjusted residuals, but i'm not really sure what nor whether
the pseudo r^2 would be meaningful :/
library(survey)
library(quantreg)
r code for the packages cstmr ,gRain,gRc,gRim,gRbase using probability models,
On Friday, September 19, 2014 7:05 AM, Henrik Bengtsson h...@biostat.ucsf.edu
wrote:
As a start, make sure you specify the 'colClasses' argument. BTW,
using that you can even go to the extreme and read one
Dear all, I would like to draw something similar to the following picture, does
anyone know a better strategy to start?
http://www.psrd.hawaii.edu/WebImg/Pyx-thermometer.gif
Eve
[[alternative HTML version deleted]]
Dear Gang Chen;
The .Rprofile is loaded from the startup directory. Terminal.app will
start up in /Applications/ while your R.app session appears to be
starting in a different directory. (We don't know what your startup
directories are.) I'm using R.app in /Applications/ so my .Rprofile
On Sep 18, 2014, at 10:28 AM, davide.chi...@gmail.com wrote:
I tried with a different mirror, but nothing changed...
Any other idea?
Post to the r-SIG--debian mailing list?
Search that list's Archives?
--
David.
Thanks anyway
-- Davide
2014-09-17 10:39 GMT-04:00 Jeff Newmiller
Hola a todos.Tengo desarrollados varios scripts en R con tareas espec�ficas,
las cuales deben ejecutarse diariamente.Esta es algo por el momento semi
autom�tico, algunas he logrado configurarlas en el TASK de WINDOWS, pero otras,
por su dependencia y complejidad me dan inconvenientes, por lo
30 matches
Mail list logo