Re: [R] interactive Map: Popups

2015-07-23 Thread daniel
ecklenburg-Vorpommern", "Niedersachsen", "Nordrhein-Westfalen", "Rheinland-Pfalz", "Saarland", "Sachsen", "Sachsen-Anhalt", "Schleswig-Holstein", "Thüringen"), value = 1:16) G3 <- gvisGeoMap(GR, locationvar

Re: [R] Time outside limits

2014-10-16 Thread daniel
Bart, Check if the following could help you. library(xts) y <- c(rnorm(10,25), rnorm(10,32),rnorm(10,25), rnorm(10,20), rnorm(10,25)); x <- seq(c(ISOdate(2000,3,20)), by = "hour", length.out = length(y)) z <- xts( y, order.by=as.POSIXct(x)) limit <- ifelse( lag(z) < 22

Re: [R] converting individual data series to natural log (continuously compounded return)

2014-10-31 Thread daniel
0+100, order.by=seq(as.Date("2014-10-22"), as.Date("2014-10-31"), by="day")) str(df) Return.calculate(df, "log") If you are going to use the PerformanceAnalytics package I highly recommend you to checkl the xts package. Daniel Merino 2014-10-31 15:24 GMT-

Re: [R] Function that create day of the year column.

2014-11-04 Thread daniel
Frederic, Check the lubridate library. install.packages("lubridate") library(lubridate) yday(Sys.Date()) d <- 4 m <- 11 y <- 2014 yday(as.Date(paste(y,m,d,sep="-"))) Daniel Merino 2014-11-04 7:01 GMT-03:00 Frederic Ntirenganya : > Dear All, > > I would l

Re: [R] Function that create day of the year column.

2014-11-04 Thread daniel
Maybe, you can add a parameter with a list of the column names and inside the function an if statement, if the list lenght is 1 use the function with 1 column else the 3 columns. I am sure you can find better solutions. Daniel Merino 2014-11-04 9:30 GMT-03:00 Frederic Ntirenganya : > Hi Dan

[R] ggplot2, qplot, problems

2016-12-05 Thread Daniel
1: `stat` is deprecated 2: `position` is deprecated > plot <- plot + facet_grid(type ~ subjectname) > plot Error: stat_count() must not be used with a y aesthetic. ------- tha

[R] Print table in lme

2010-02-19 Thread Daniel
Hello, I'm trying to add lme results in a table with lm coef results, but as I know, estout or xtabel cannot support lme objects. I'm a new in R and I'll appreciate some helpful comments. -- Daniel Marcelino Phone: (647) 8910939 [[alternative HTML

[R] ODBC with Filemaker

2010-02-26 Thread Daniel
Hi all, anybody get connection with Filemarker 10 for mac? How do that? I suppose did right, but it is not working. -- Daniel Marcelino Phone: (647) 8910939 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] updating cells

2010-06-17 Thread Daniel
Hello all,I have a table with about 18000 rows, I need to UPDATE the strings in the "name.x" column in each row by the strings from "name.y" given if "name.x" is NA or " ". How can I do it? Also I want to update values in other columns, but I think that

[R] Help for loop

2010-12-17 Thread Daniel
CsvCandidato.action?sqCandidato=4000257&sgUe=AM&cpfCnpjDoador= "," http://spce2010.tse.gov.br/spceweb.consulta.receitasdespesas2010/exportaReceitaCsvCandidato.action?sqCandidato=12000162&sgUe=MS&cpfCnpjDoador="; ) big.data <- NULL base <-NULL for (i

Re: [R] Help needed with aggregate or other solution

2017-10-26 Thread Daniel Nordlund
0:00", "2012-04-24 06:00:00", "2012-04-24 12:00:00", "2012-04-24 18:00:00", "2012-04-25 00:00:00", "2012-04-25 06:00:00", "2012-04-25 12:00:00", "2012-04-25 18:00:00", "2012-04-26 00:00:00", "2012-04-26 06:00:0

Re: [R] Count non-zero values in excluding NA Values

2017-10-29 Thread Daniel Nordlund
minimal, self-contained, reproducible code. this looks like a good place for apply() apply(data,2,function(x) sum(x != 0, na.rm=TRUE)) Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSU

Re: [R] Missing information in source()

2017-11-07 Thread Daniel Nordlund
On 11/7/2017 12:01 PM, Tom Backer Johnsen wrote: Dear R-help, I am running a Mac under Sierra, with R version 3.4.2 and RStudio 1.1.383. When running head () or tail () on an object in a script using source (

[R] IBM Power vs Markdown

2018-01-19 Thread Daniel King
# tail markdown/src/html_blocks.h if (key <= MAX_HASH_VALUE && key >= 0) { register const char *s = wordlist[key]; if unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strncmp (str, s, len) && s[len] == &#

Re: [R] Simulation based on runif to get mean

2018-01-30 Thread Daniel Nordlund
at your real world task actually is. Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

Re: [R] command line fails

2018-02-02 Thread Daniel Nordlund
ading Tools/RV Tools/myfile.r" I don't know how rscript handles the '\' character (i.e. as an escape or not) so I changed the '\' to '/' just to be safe. And note, the program pathname and the file being passed need to

Re: [R] How to turn off warnings about class name conflicts

2018-02-14 Thread Daniel Nordlund
d not get the message you are getting. I suspect you have something in your workspace that is causing the problem. Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/m

Re: [R] Empirical density estimation

2018-03-11 Thread Daniel Nordlund
this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA On Mon, Mar 12, 2018 at 3:49 AM, Bert Gunter wrote: You need to re-read ?density and perhaps think again -- or do some study -- about how a (kernel) density estimate works. The points at which the estimate is calculated are *not*

Re: [R] Average of results coming from B=100 repetitions (looping)

2018-05-08 Thread Daniel Nordlund
(i in 1:10) lst[i] <- i mean(lst) # does not work The documentation for mean, ?mean, says that it is looking for a numeric or logical vector. To convert your list to a numeric vector you could unlist() it. mean(unlist(lst)) Hope this is helpful, Dan -- Daniel Nordlund Port Townsend,

Re: [R] Bootstrap and average median squared error

2018-05-22 Thread Daniel Nordlund
median squared error", shouldn't the final line of the function be median((y - ypred)^2) Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mai

Re: [R] Using tryCatch in a for loop

2018-05-22 Thread Daniel Nordlund
object does not have 3 rows, so you get an error and SlopeDiff is not created. You need to correct these problems, and any others, so that your code runs correctly when there are no data problems. Then you can worry about trapping errors in the case where there are data problems. Hope this i

Re: [R] Cannot Load A Package

2018-06-02 Thread Daniel Nordlund
ary(devtools) install_github("kasperwelbers/semnet") Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Help with transpose please.

2018-06-23 Thread Daniel Nordlund
x27;Dx',ave(rep(1, nrow(have)), have[,1:2], FUN = seq_along), sep='') # cast the data into wide format cast(cbind(have,dxnames), ClaimServiceID + ClaimID ~ dxnames, value='DiagnosisCode') Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA __

[R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
The following function is supposed to search the workspace and save plots  (i.e. listing all objects in the workspace named "Figs", which are all ggplot2 plots, and saving them as png files) SaveFigs <- function() { for (i in ls(pattern="_Figs_")) { filename = paste

Re: [R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
th > the same as last week? > > -pd > > > > On 4 Apr 2017, at 10:50 , DANIEL PRECIADO > > wrote: > > > > The following function is supposed to search the workspace and save > > plots  (i.e. listing all objects in the workspace named "Figs", >

Re: [R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
ironment to list, as in: f <- function() ls(.GlobalEnv) f() [1] "f" "foobar" On 4 Apr 2017, at 12:27 , DANIEL PRECIADO mailto:danp...@hotmail.com>> wrote: Thanks, but printing doesn't work within the function either. (i.e, no result or output, or error).

Re: [R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
400, Boris Steipe wrote: I discourage the use of print() for debugging. Put a browser() statement into your loop and when execution takes you to the debugger interface, examine your variables and expressions one by one. B. On Apr 4, 2017, at 10:09 AM, DANIEL PRECIADO mailto:danp...@h

[R] Question on accessing foreign files

2017-04-18 Thread Daniel Molinari
Hi all, I have several data files provided in mtw format (Minitab) and sdd format (S-Plus) and I need to read them in R. I do not have access either to Minitab or to S-Plus. How can I accomplish this task ? Thank you, Daniel [[alternative HTML version deleted

[R] Unusual behavior in e1071?

2017-05-01 Thread Daniel Jeske
assify as +1 if f(x)>0. Does anyone think the behavior I have noticed is as intended, or is otherwise benign? Thank you, Daniel Jeske Professor Department of Statistics University of California - Riverside [[alternative HTML version deleted]] ___

Re: [R] display double dot over character in plotmath?

2017-05-12 Thread Daniel Nordlund
y making sure the NUMLOCK key is on, hold down the alt key and press 0228 on the numeric keypad. Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.eth

[R] S-mode PCAs

2017-06-13 Thread Daniel Vecellio
? Thanks in advance, Dan -- *Daniel J. Vecellio* *Ph.D. Student - Climate Science Lab, **Department of Geography, **Texas A&M University* [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] dplyr's arrange function

2016-06-15 Thread Daniel Nordlund
t; (in descending order). If you want the character value of line 7 to sort last, it would need to be "06.1 (0.61)" or " 6.1 (0.61)" (notice the leading space). Hope this is helpful, Dan Daniel Nordlund Port Townsend, WA USA __ R

Re: [R] better loop for simulation

2016-06-18 Thread Dalthorp, Daniel
try: n.questions <- 10 # or however many you want mult.choice <- 2 scores <- rbinom(1000, size = n.questions, prob = 1/mult.choice) On Sat, Jun 18, 2016 at 3:12 PM, Naresh Gurbuxani < naresh_gurbux...@hotmail.com> wrote: > I want to calculate a function many times over. My solution below work

[R] tclArray() --- "active"?!

2016-07-06 Thread Dalthorp, Daniel
Sometimes when working with tclArray's, an empty element called "active" is appended to the array. Does anyone know when (and why) this happens? And how to prevent it (or at least predict it so that it can be removed by hand)? E.g., library(tcltk); library(tcltk2) tt<-tktoplevel() dat<-tclArray()

Re: [R] tclArray() --- "active"?!

2016-07-06 Thread Dalthorp, Daniel
cell, and that the widget needs to record > the fact that there is now no active cell.) > > -pd > > > > On 06 Jul 2016, at 16:18 , Dalthorp, Daniel wrote: > > > > Sometimes when working with tclArray's, an empty element called "active" > is >

Re: [R] Sampe numbers

2016-07-19 Thread Daniel Nordlund
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code

Re: [R] how to expand the dataframe

2016-07-21 Thread Daniel Nordlund
ong at home" (i.e. give us a reproducible example). Dan Daniel Nordlund Port Townsend, WA -- Daniel Noredlund Bothell, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PL

[R] font size in graphs...can R read Windows settings?

2016-07-27 Thread Dalthorp, Daniel
Hi All, I am putting together a package that (among other things) draws some nice graphs for users. I place some explanatory text on figs using "text" and "mtext". But the size of the text depends on the Windows display settings: Smaller (100%), medium (125%) or larger (150%) (In Windows 7... Contr

Re: [R] font size in graphs...can R read Windows settings?

2016-07-28 Thread Dalthorp, Daniel
ue"))), > type = "b") > > Regards > > Duncan > > Duncan Mackay > Department of Agronomy and Soil Science > University of New England > Armidale NSW 2351 > Email: home: mac...@northnet.com.au > > -Original Message- > From: R-

Re: [R] font size in graphs...can R read Windows settings?

2016-07-28 Thread Dalthorp, Daniel
; las = 1, > > mai = c(0.85, 0.85, 0.32, 0.12), > > font.main = 1, > > cex.main = 1.0, > > cex.lab = 1.0, > > cex.axis = 0.9) > > > > Duncan > > > > *From:* Dalthorp, Daniel [mailto:ddalth...@usgs.gov] > *Sent:* F

Re: [R] I'm getting confused with notation and terminology in output from weibull parametric survival model from survreg()

2016-07-29 Thread Dalthorp, Daniel
The parameterization for Weibull in the 'survival' package corresponds to base R's dweibull, etc. suite as 1/scale --> shape and exp(coef[1]) --> scale On Fri, Jul 29, 2016 at 1:07 PM, Christopher W. Ryan wrote: > I'm trying to run a Weibull parametric survival model for recurrent event > data,

Re: [R] SAS file

2016-08-07 Thread Daniel Nordlund
need to get an XPORT format file, or have SAS available, or get some 3rd party software that will read SAS datasets. Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz

Re: [R] R bug when started in Windows 10

2016-08-14 Thread Daniel Nordlund
producible exampole, I did notice one problem in the example you did give of a directory with spaces. It looks like you were using single quotes (') around the path/filename. Windows requires that there be double quotes (") around any path/filenam

[R] problem concernig Survsplit, package survival

2016-08-22 Thread Wollschlaeger, Daniel
' were specified. A corrected pdf of the chapter is available at http://dwoll.de/r/gddmr/09_survival.pdf Daniel Wollschlaeger On August 19, 2016 4:21:31 AM PDT, "Vinzenz Völkel via R-help" wrote: >Dear R-help-community, > > > >I hope, that?s the appropiate channel to

Re: [R] Rotating points, preferably in grid

2016-08-24 Thread Dalthorp, Daniel
Silly? Not really. It's simple. It works. You could jump into unicode for your text and make it look nicer, e.g., using '\u2191' or some other shape in place of 'T' http://unicode.org/charts/ http://unicode.org/charts/PDF/U2190.pdf -Dan On Wed, Aug 24, 2016 at 7:16 PM, Thomas Levine <_...@thom

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Daniel Nordlund
nd > strptime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") [1] "2016-08-25 18:34:00 PDT" works for me. Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-26 Thread Daniel Nordlund
d document will help: https://cran.r-project.org/web/packages/xlsx/xlsx.pdf Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Bootstrapping in R

2016-10-01 Thread Daniel Nordlund
ing the same answer." Someone may then be able to do more than guess at what the problem is. Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

Re: [R] dotplot

2015-05-16 Thread Daniel Nordlund
over the colors chosen. I created a vector, color, specifying the colors and the order they will be applied. 2. the scales parameter is what you are looking for. The parameter is looking for a list which consists of name=value pairs. You can rotate the labels by a specified number of deg

Re: [R] dotplot

2015-05-16 Thread Daniel Nordlund
On 5/16/2015 1:19 PM, Daniel Nordlund wrote: On 5/16/2015 12:32 PM, li li wrote: Hi all, I wrote the following code and have two questions: (1) As you can see, I would like different colors for different types. It does not come out that way in the graph from this code. Anyone know how to

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread Daniel Nordlund
;- rnorm(100,200,50) # create deciles for binning decile <- as.numeric(cut(rt, quantile(rt,0:10)/10),include.lowest=TRUE)) # collect into a dataframe (not really necessary) df <- data.frame(rt=rt, decile=decile) #compute the bin means aggregate(rt,list(decile),mean,data=df) This sho

Re: [R] Getting a cdf equal to 1 from a variable kernel density estimation

2015-05-27 Thread Daniel Nordlund
lowing: gaussianKernel <- function(u) exp(-u^2/2)/(2*pi)^.5 densityFunction <- function(x, df, ker, h){ difference = t(t(df) - x)/h W = sum(apply(difference, 1, ker)) / (nrow(df)*h) } If you are wanting to do density estimation for real world work, I would get help from someone i

Re: [R] Combining multiple probability weights for the sample() function.

2015-06-03 Thread Daniel Nordlund
m contain identical letters 1 and 3, AND ~50% again contain identical letters 2 and 3 (except in this example as it is not possible from the choices). Can multiple probability weightings be combined in such a manner? Ben, If I correctly understand your requirements, you can't do what you

Re: [R] sampling rows with values never sampled before

2015-06-22 Thread Daniel Nordlund
orld problem. There is no error checking, and for large samples it may not scale well. Hope this is helpful, Dan -- Daniel Nordlund Bothell, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/l

[R] Function returning multiple objects but printing only one

2015-07-13 Thread Daniel Caro
ces bootstrap coefficients so clearly I don't want to print the bootstrap output but I do want users to be able to access it. Many thanks, Daniel [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE a

Re: [R] remove 0 and NA values

2015-07-13 Thread Daniel Nordlund
equal to zero! On Jul 13, 2015 5:31 PM, "Daniel Nordlund" mailto:djnordl...@frontier.com>> wrote: On 7/13/2015 3:01 PM, Lida Zeighami wrote: Hi there, I have a matrix which its elements are 0, 1,2,NA I want to remove the columns which the colsums are equ

[R] How to simulate informative censoring in a Cox PH model?

2015-07-22 Thread Daniel Meddings
I wish to simulate event times where the censoring is informative, and to compare parameter estimator quality from a Cox PH model with estimates obtained from event times generated with non-informative censoring. However I am struggling to do this, and I conclude rather than a technical flaw in my

Re: [R] How to simulate informative censoring in a Cox PH model?

2015-07-24 Thread Daniel Meddings
dependent data and then transform the > values using your Weibul. Or you could generate your event times and > censoring times based on x1 and x2, but then only include x1 in the > model. > > On Wed, Jul 22, 2015 at 2:20 AM, Daniel Meddings > wrote: > > I wish to simulate event

Re: [R] How to simulate informative censoring in a Cox PH model?

2015-07-30 Thread Daniel Meddings
on). So I don't think so much that you are doing > things wrong, just that you are learning that the models are complex. > > Another approach to simulation that you could try is to simulate the > event time and censoring time using copulas (and therefore they can be > correlated to give

Re: [R] How to simulate informative censoring in a Cox PH model?

2015-08-03 Thread Daniel Meddings
times does not even present itself here? Thanks Dan On Fri, Jul 31, 2015 at 5:06 PM, Greg Snow <538...@gmail.com> wrote: > Daniel, > > Basically just responding to your last paragraph (the others are > interesting, but I think that you are learning as much as anyone and I >

[R] Chaining multiple replacement functions in R

2014-12-30 Thread Daniel Gabrieli
I cross posted this on Stack Overflow: http://stackoverflow.com/questions/27694466/chaining-multiple-replacement-functions-in-r I am using R to work with a large JS object (using the library rjsonio). As such, I have a lot of nested lists, which are getting somewhat cumbersome to work with. I hav

Re: [R] Chaining multiple replacement functions in R

2014-12-30 Thread Daniel Gabrieli
uncan Murdoch wrote: > On 29/12/2014 4:41 PM, Daniel Gabrieli wrote: > > I cross posted this on Stack Overflow: > > > http://stackoverflow.com/questions/27694466/chaining-multiple-replacement-functions-in-r > > > > > > I am using R to work with a large JS obje

Re: [R] Chaining multiple replacement functions in R

2014-12-30 Thread Daniel Gabrieli
;FirstKey")) rmatch.pos(app, "attr2", rmatch.pos(app, "SecondKey")) rmatch.pos(app, "attr1", rmatch.pos(app, "ERROR")) rmatch.pos(app, "ERROR", rmatch.pos(app, "attr1")) On Tue, Dec 30, 2014 at 1:08 PM, Daniel Gabrieli wrote: >

[R] Creating two autocorrelated and correlated time series

2015-02-05 Thread Daniel Marmander
specific correlation between the series. I have found some help here: http://stats.stackexchange.com/questions/71211/how-to-generate-normal-random-variable-vector-which-is-spatially-auto-correlated but I have a hard time implementing it in R, being a R-novice. Thanks, Daniel [[alternative HTML

Re: [R] SAS equivalent for R's signif function?

2015-02-09 Thread Daniel Nordlund
AS you could use PROC FCMP to turn this into a function. If you are interested contact me offline and I will send you a PROC FCMP implementation. Dan -- Daniel Nordlund Bothell, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and mor

Re: [R] generating phi using function()

2015-03-29 Thread Daniel Nordlund
-- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Daniel Nordlund Bothell, WA USA _

Re: [R] Sampling

2015-03-29 Thread Daniel Nordlund
assuming you want to sample without replacement. Generalizing it to other data structures is left as an exercise for the reader. replicate(100,mean(sample(yourdata,30, replace=FALSE))) hope this is helpful, Dan -- Daniel Nordlund Bothell, WA USA __ R

Re: [R] generating phi using function()

2015-03-30 Thread Daniel Nordlund
e help says of the formula argument formula formula for restricted MIDAS regression or midas_r object. Formula must include fmls function your formula does not include the fmls() function, it uses mls(). So I think your problem may have to do with how you are calling the midas

[R] Package build system adds line break in DESCRIPTION URL

2015-04-03 Thread Daniel Lewandowski
Has anybody noticed that if field URL in DESCRIPTION contains a uri with 66 or more characters, then file DESCRIPTION in the resulting package includes a line break at the beginning? So this (source DESCRIPTION): URL: http://ecdc.europa.eu/en/data-tools/seroincidence-calculator-tool/Pages/def

Re: [R] BIG difficulties in Using boot.ci (bot package)

2015-04-13 Thread Daniel Nordlund
index=3) Error in boot.ci(results, type = "bca", index = 3) : object 'results' not found A reproducible example means that when I run your code on my machine, I get the same results / warnings / errors that you get. I got something different. Dan -- Daniel Nordl

Re: [R] Rendo and dataMultilevelIV

2018-08-02 Thread Daniel Nordlund
to above (which describes the dataMultilevelIV dataset)? Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gu

Re: [R] Converting chr to num

2018-08-19 Thread Daniel Nordlund
rrences of '%'. The pattern is more strict, and that could cause the conversion to fail if the process that created the strings resulted in trailing spaces. Without the '$' the conversion succeeds. df <- data.frame(variable = c("12.6% ", "30.9%", &quo

Re: [R] seq() problem with chron

2018-09-06 Thread Daniel Nordlund
- strptime("02/20/13 00:00:00", "%m/%d/%y %H:%M:%S") dt2 <- strptime("07/03/18 15:30:00", "%m/%d/%y %H:%M:%S") dt <- seq(from=dt1, to=dt2, by=900) dt[length(dt)] There might also be some useful functions in the lubridate package. Hope this is helpful, D

Re: [R] Newton-RaphsonMethod

2019-02-24 Thread Daniel Nordlund
h I will leave the solution of the problem to you. Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide htt

[R] Rank ANCOVA

2019-03-13 Thread Jackson, Daniel
Hi Frank and Dennis I am in a similar situation but I would prefer to use a proportional odds model. 2 questions. 1. Has rank ancova been implemented in R now, despite its short comings? 2. Where has it been shown to yield unreliable analyses? I would like this evidence (which I believe

Re: [R] Rank ANCOVA

2019-03-14 Thread Jackson, Daniel
Thanks I am now in personal communication with Frank anyway! Dan -Original Message- From: peter dalgaard Sent: 14 March 2019 10:37 To: Jackson, Daniel Cc: r-help@r-project.org Subject: Re: [R] Rank ANCOVA 1. This is the R-help mailing list, not "Frank and Dennis" 2. You

Re: [R] Downloading R Data

2019-04-14 Thread Daniel Nordlund
. If you wish to do something else, you will need to be more specific about what you want. Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

Re: [R] Linear relative rate / excess relative risk models

2014-07-29 Thread Wollschlaeger, Daniel
results closely match those from Epicure. Using the data here: http://dwoll.de/err/dat.txt The stan model fit below replicates the results from Epicure here: http://dwoll.de/err/epicure.log Of course I am still interested in learning about other options or approaches. Daniel ##--- ## rstan

[R] lm weights argument within function

2014-08-01 Thread Daniel Caro
uot;, but I need wt to be an argument in quotes, not an object. It seems the issue is related to ?lm = "All of weights, subset and offset are evaluated in the same way as variables in formula, that is first in data and then in the environment of formula., but I can't figure it out. Can you

[R] "no visible binding for global variable" and with() vs. within()

2014-08-17 Thread Daniel Braithwaite
R CMD check does not object to this code when checking a package: foo1 <- function (bar) { with(bar, { x }) } but produces a warning: foo2: no visible binding for global variable 'x' in response to this: foo2 <- function (bar) { within(bar, { x }) } Is this an R bug, o

[R] Problem when estimating through "dlm" package

2014-09-16 Thread Daniel Miquelluti
I'm trying to set up an AR(2) model in the dlm context. I've generated a time series utilizing the code: am = 800; #sample size des = 200; #initial values to be discarded V = 0.5 v = rnorm((am+des+1),0,sqrt(V)) W = 0.9 w = rnorm((am+des+1),0,sqrt(W)) U = 0.9

[R] Dynamic regex/sub changes to function

2014-09-22 Thread Daniel Fuka
Howdy, I have searched the lists and can not seem to find a solution to my problem. I need to be able to dynamically modify a string inside a function to build a new function. "sub" replaces with a quoted string... and "parse" of "sub" returns expression... How can I get an unquoted string from a

Re: [R] Dynamic regex/sub changes to function

2014-09-22 Thread Daniel Fuka
my name is muka,\", x)" return(song) } Thanks again for the quick reply and help you are giving me! dan On Mon, Sep 22, 2014 at 10:37 AM, Duncan Murdoch wrote: > On 22/09/2014 9:16 AM, Daniel Fuka wrote: >> >> Howdy, >> >> I have searched the list

Re: [R] Dynamic regex/sub changes to function

2014-09-22 Thread Daniel Fuka
release of the package. > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Mon, Sep 22, 2014 at 8:34 AM, Daniel Fuka wrote: >> Howdy Duncan, >> >> Thanks for the quick reply! I must be missing something >> simple/obvious. I need to have the &

Re: [R] Dynamic regex/sub changes to function

2014-09-22 Thread Daniel Fuka
] "=" # is trying to give me a pretty blatant hint... {: -) On Mon, Sep 22, 2014 at 1:24 PM, Duncan Murdoch wrote: > On 22/09/2014 11:34 AM, Daniel Fuka wrote: >> >> Howdy Duncan, >> >> Thanks for the quick reply! I must be missing something >> simple/obvi

[R] quantreg crq function-incomplete taus fitted

2014-10-07 Thread daniel castro
re the rest un itl 1? qreg1<-crq(Surv(TIME,EVENT,type="right")~VAR1+VAR2, data=DATA_TRAIN,method = "Portnoy",grid=seq(0.1,1,by=0.1)) gives only one value for tau=0.0 I want to control the parameters tau or grid to get the results for the quantiles I want, but it

Re: [R] errors in initial values in R2winBUGS

2014-10-11 Thread Daniel Miquelluti
You are separating the objects using commas, the correct should be semicolons. Example: xi1=matrix(data=rep(0.0,600),ncol=3);xi2=matrix(data=rep(0.0,600),ncol=3)) Best regards, Daniel Miquelluti Em S�bado, 11 de Outubro de 2014 18:06, Uwe Ligges escreveu: On 11.10.2014 06:09, thanoon

Re: [R] loops in R

2014-11-05 Thread Daniel Nordlund
,list(Population), mean)) with(your_data_frame,aggregate(R,list(Population), var)) hope this is helpful, Dan Daniel Nordlund Bothell, WA USA __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Lme4 Package Help!

2014-11-06 Thread Daniel Mello
Hello, all! So, as stated in the title, the Lme4 package used to output p-values for the fixed effects. What happened?! Literally 2 weeks ago, I ran code, got output with no errors, and had p-values listed for my fixed effects. Now, running THE SAME CODE with THE SAME DATASET (nothing at all ha

Re: [R] Getting the most recent dates in a new column from dates in four columns using the dplyr package (mutate verb)

2014-11-09 Thread Daniel Nordlund
rg/posting-guide.html and provide commented, minimal, self-contained, reproducible code. I am not familiar with the mutate() function from dplyr, but you can get your wanted results as follows: data2 <- within(data1, oidflag <- apply(data1[,-1], 1, max, na.rm=TRUE)) Hope this is h

Re: [R] Getting the most recent dates in a new column from dates in four columns using the dplyr package (mutate verb)

2014-11-09 Thread Daniel Nordlund
-04 2011-11-04 Pradip K. Muhuri, PhD SAMHSA/CBHSQ 1 Choke Cherry Road, Room 2-1071 Rockville, MD 20857 Tel: 240-276-1070 Fax: 240-276-1260 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Daniel Nordlund Sent: Sunday, November 09, 2

[R] HELP ON NON-LINEAR MIXED MODEL

2014-11-13 Thread Popoola Daniel
Good Morning Sir/Ma, I am POPOOLA DANIEL a Forest Biometrician in making from the University of Ibadan, Ibadan Nigeria. Please Sir/Ma I am having issues on performing Non-linear mixed model on R (using maximum likelihood approach). I am trying to input four different measured variables which

[R] Fwd: PLEASE HELP ON R-LANGUAGE

2014-12-01 Thread Daniel James
Subject: PLEASE HELP ON R-LANGUAGE I am writing my project on "The effect of Bootstrapping on Time Series Data". My problem is how I will write r programme to run a non stationary time series data. I am familia to r language already. Please help me. [[alternative HTML version deleted]]

[R] Estimating group modes using GLMs for skewed distributions

2015-08-25 Thread Daniel Meddings
I am wondering why for generalized linear models with Gamma, Poisson and Negative Binomial distributions that there appears to be no discussion about estimating the medians or the modes of the distributions. For example in clinical trials for count data where a log link is used it is the quantity

Re: [R] Connecting R to SAS SPDS through ODBC - no results.

2015-09-18 Thread Daniel Nordlund
x27;, believeNRows=FALSE, colQuote=NULL) Hope this is helpful, Dan -- Daniel Nordlund Bothell, WA USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] retaining characters in a csv file

2015-09-23 Thread Daniel Nordlund
o convert strings to factors, so you can modify as needed. In addition, if your files aren't as regular as I inferred, you can increase the number of rows to read in the first line to ensure getting the classes right. Hope this is helpful, Dan -- Daniel Nordlund Bothell, WA USA ___

[R] how to work with time of day (independent of date)

2015-10-30 Thread Daniel Nordlund
uot;2015-10-30 00:50:00", "2015-10-30 09:30:00", "2015-10-30 21:10:00", "2015-10-31 00:50:00", "2015-10-31 10:30:00"), class = "factor"), value = c(88L, 17L, 80L, 28L, 23L, 39L, 82L, 79L)), .Names = c("date", "value"), ro

Re: [R] how to work with time of day (independent of date)

2015-10-30 Thread Daniel Nordlund
On 10/30/2015 11:17 AM, Mark Leeds wrote: Daniel: Just to complete my solution, here's the code for doing the mean. Didn't expect this to take 3 emails !!! Have a good weekend. temp <- tapply(f$value, f$justtimes, mean) finalDF <- data.frame(chrontimes = times(rownames(temp)

[R] Nested ANOVA yields surprising results

2015-10-30 Thread Daniel Wagenaar
`Sum Sq`[1] / a$`Sum Sq`[2] P <- 1 - pf(F, a$Df[1], a$Df[2]) (They are not R programmers (yet).) And to be honest, I would find it easier to read those results directly from the table as well. Thanks, Daniel Wagenaar -- Daniel A. Wagenaar, PhD Assistant Professor Department of Biologica

Re: [R] (no subject)

2015-11-01 Thread Daniel Wagenaar
address I subscribed to the list with. When I resent it, I failed to copy the subject line. My apologies. - Daniel On 10/30/2015 03:12 PM, Kevin Wright wrote: Maybe you want summary(aov(Y ~ A + Error(A:B))) Kevin On Fri, Oct 30, 2015 at 9:32 AM, Wagenaar, Daniel (wagenadl) mailto:wagen...@ucm

  1   2   3   4   5   6   7   8   9   10   >