similar to: R Equivalent of SAS Datastep Line-Hold (@@) Specifier?

Displaying 20 results from an estimated 30000 matches similar to: "R Equivalent of SAS Datastep Line-Hold (@@) Specifier?"

2011 Apr 01
2
Cox Proportional Hazards model with a time-varying covariate
Hello Everyone,   I'm learning how to perform various statistical analyses in R. I'm checking my understanding by replicating examples from my SAS books. Below is an attempt to replicate a Cox Proportional Hazards model with a time-varying covariate. I think I'm doing this correctly but am not completely sure. I would appreciate it if someone could double-check my results. In case
2013 Jan 03
2
Sas by function in R
Hello, It's an alternative to use SAS by function in R? I want to plot d histograms by plot.from example bellow: Thank you! plot d 1 1 16.3 2 1 25.0 3 1 57.8 4 1 17.0 5 2 10.8 13 2 96.4 17 3 76.0 18 3 32.0 19 3 11.0 20 3 11.0 24 3 106.0 25 3 12.5 21 4 19.3 22 4 12.0 26 4 15.0 27 5 99.3 32 7 11.0 36
2011 Jun 13
0
Setting up counting process data for survival analysis
Hello Everyone, I'm learning to do survival analysis in R using a time-varying covariate. I've managed to set up my data correctly using SAS and then to get the correct result using R. What I'd like help with is getting the data set up correctly in R without having to resort to using SAS. Below are two datasets. The first is the raw data I'm starting out with. The second is set
2013 Nov 26
7
[PATCH RESEND 0/1] libxl: introduce an option for disabling the non-O_DIRECT
I think I posted this patch before, but it looks like it was in December 2012 (!). 1/1 libxl: introduce an option for disabling the non-O_DIRECT workaround Ideally it would go into 4.4, at least. Provided the corresponding qemu part has gone into qemu-xen, which I think it has. Can anyone confirm ?
2008 May 09
1
FLAC__metadata_get_picture()
Hi all! I have a problem to get _all_ images from flac file. I have flac file with 3 images inside ( FLAC__METADATA_TYPE_PICTURE ) How to get _all_ images with bool FLAC::Metadata::get_picture() func? This function is wrapper FLAC__bool FLAC__metadata_get_picture(). flac-1.2.1/src/libFLAC/metadata_iterators.c: ... 285 FLAC_API FLAC__bool FLAC__metadata_get_picture(const char *filename,
2011 Dec 27
1
differences between 1.7 and 1.7.1 glmnet versions
Dear All, ? I have found differences between glmnet versions 1.7 and 1.7.1 which, in my opinion, are not cosmetic and do not appear in the ChangeLog. If I am not mistaken, glmnet appears to return different number of selected input variables, i.e. nonzeroCoef(fit$beta[[1]]) differes between versions. The code below is the same for 1.7.1 and 1.7, but you can see that outputs differ. I would
2013 Feb 27
2
matrix multiplication
Hi, Try this: #mat1 is the data res<-do.call(cbind,lapply(seq_len(nrow(mat1)),function(i) {new1<-do.call(rbind,lapply(seq_len(nrow(mat1[-i,])),function(j) {x1<-rbind(mat1[i,],mat1[j,]); x2<-(abs(x1[1,1]-x1[2,1])*abs(x1[1,5]-x1[2,5]))+(abs(x1[1,2]-x1[2,2])*abs(x1[1,6]-x1[2,6]))+(abs(x1[1,3]-x1[2,3])*abs(x1[1,7]-x1[2,7]))+(abs(x1[1,4]-x1[2,4])*abs(x1[1,8]-x1[2,8]))}));new1}))
2012 Mar 28
1
CI with confint
Hello all, I'm trying to use confint from the MASS package to compute confidence intervals for an nls object. When I plot the results, however, they don't make sense - lines cross over the fitted model or just don't match the data. Code is : Thanks for help dat<-data.frame(a,b) with(dat, plot(a,b)) model<-(nls(b~(1/exp(a*x))*n, data=dat, start=list(x=.001,n=20),
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
See description in the attached patch. -------------- next part -------------- This quick hack adds primitive support of UTF-8 as a server 'character set' to Samba 2.0.7. All file, share and user names are stored on server in UTF-8, and translated into client code page (not UCS2) on the fly. Additionally, server string conversion is added. Tested with Chinese and Russian Windows clients.
2010 Sep 09
2
Invalid or corrupt kernel image
Hi, I am trying to setup my own PXE boot server. I tried several PXE bootable Linux-Distributions. For example if I use the ubuntu netboot image from [1] it works quit well but there are a few other images they do not work in my case e.g.: RIPLinuX [2]. A friend tested this image on his PXE boot server with success. I also checked the download with md5sum. In my case I can see the boot menu [3].
2009 Dec 06
3
SAS "datalines" or "cards" statement equivalent in R?
Hi R Users, Is there a equivalent command in R where I can read in raw data? For example I'm looking for equivalent R code for following SAS code: DATA survey; INPUT id sex $ age inc r1 r2 r3 ; DATALINES; 1 F 35 17 7 2 2 17 M 50 14 5 5 3 33 F 45 6 7 2 7 49 M 24 14 7 5 7 65 F 52 9 4 7 7 81 M 44 11 7 7 7 2 F 34 17 6 5 3 18 M 40 14 7 5 2 34 F 47 6 6 5 6 50
2010 Jul 16
1
Troubles with DBI's dbWriteTable in RMySQL
I am feeling rather dumb right now. I created what I thought was a data.frame as follows: aaa <- lapply(split(moreinfo,list(moreinfo$m_id),drop = TRUE), fun_m_id) m_id_default_res <- do.call(rbind, aaa) print("==========================================") m_id_default_res print("==========================================") ndf <- m_id_default_res[, c('mid',
2007 Jul 02
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_interpret.c test/trace
libswfdec/swfdec_as_interpret.c | 51 + test/trace/Makefile.am | 16 test/trace/chartoascii-4.swf |binary test/trace/chartoascii-4.swf.trace | 7 test/trace/chartoascii-5.swf |binary test/trace/chartoascii-5.swf.trace | 1011 ++++++++++++++++++++++++++++++++++++ test/trace/chartoascii-6.swf |binary test/trace/chartoascii-6.swf.trace | 1008
2008 Feb 09
1
Problem with fitdistr function
Hello, I am using fitdistr function for parameter estimation. When I use fd<-fitdistr(V2,"gamma") I get following error: Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, : initial value in 'vmmin' is not finite fd<-fitdistr(V2,"weibull") Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, :
2020 Feb 26
1
Re: *** buffer overflow detected *** accessing invalid FD in libguestfs
On Wednesday, 26 February 2020 10:43:27 CET Richard W.M. Jones wrote: > On Wed, Feb 26, 2020 at 11:21:18AM +0200, Veselin Kozhuharski wrote: > > Hallo Rich, > > > > Here is the fd list and total number just before collectd application > > crashes. Before that the number of used fd's is constantly increasing. It > > looks like a fd leak inside libguestfs to me.
2006 Dec 07
0
rc15 sort bug
Hi, ive come across what looks like a bug in how dovecot sorts the mail when sorting on subject. We noticed this on our current beta8 version, and I can also reproduce it in rc15. One of our customers has hundreds of emails with subjects like this: Subject: 20060823 Kanglaonline-NSCN(IM) cadres violating Tml truce: NSCN(K) Subject: 20060824 LSE - Shell jv denies 3.2 bln usd fraud claims by
2010 Feb 17
2
extract the data that match
Hi r-users,   I would like to extract the data that match.  Attached is my data: I'm interested in matchind the value in column 'intg' with value in column 'rand_no' > cbind(z=z,intg=dd,rand_no = rr)             z  intg rand_no    [1,]  0.00 0.000   0.001    [2,]  0.01 0.000   0.002    [3,]  0.02 0.000   0.002    [4,]  0.03 0.000   0.003    [5,]  0.04 0.000   0.003    [6,] 
2008 May 27
1
SCSI bus reset with Adaptec 29320ALP and Eonstor RAID
Hello, I am trying to use a 1.5TB Eonstor raid array with FreeBSD 7.0, but I don't understand whether it is the raid or the scsi card or something else that is causing the computer problems when accessing the raid. My problem is that soon after recognizing the attached disk during boot, FreeBSD appears to hang for about 10 seconds and then says ahd0: Recovery Initiated - Card
2020 Oct 27
2
Expert to work on load issue
Jon, We are only using FastAgi. On the second system (running Asterisk 16) there are no agi's running (just some bash scripts on call hangup). I did add some hackey code (netstat -nua | grep -v 'udp 0 0' | grep -v udp6 | grep -v ' 0 0.0.0.0' | grep udp) to my bash script to check out the packet queue (with the help of
2010 Sep 15
0
help for shift.down
Hi all, I created a matrix by parsing a csv file when I shift rows I am getting the wrong output as below my matrix has single column with multiple rows but it is splitting into multiple columns and not shifting row wise also can you please resolve this issue CMA1<-function() { PMA3<- read.csv("c:/myfile2.csv", strip.white = TRUE,head=TRUE,sep=",")