Displaying 20 results from an estimated 2000 matches similar to: "creating a subset of a dataset using ifelse statement?"
2006 Jul 20
1
libshout: Streaming MPEG Audio Layer 2
Hi,
I'm not anywhere near an expert, but I had successfully used
Darkice, TwoLame, and Icast231 to netcast a mp2 stream. If it
will help, here is a snip from the related area of my darkice.cfg:
[icecast2-1]
format = mp2
bitrateMode = cbr
bitrate = 384
quality = 1.0
server = 127.0.0.1
port = 32710
password = (duh!)
sampleRate =
2006 Oct 12
1
Should NA's in summary() output always be reported???
Consider
> summary(1:5)
Min. 1st Qu. Median Mean 3rd Qu. Max.
1 2 3 3 4 5
> summary(c(1:5,NA))
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
1 2 3 3 4 5 1
Wouldn't it be more stringent if "NA's" was also reported in the first case??
Regards
S?ren
2005 Apr 10
2
residuals in VGAM
Hi all:
I want to fit a multinomial logit model with VGAM package, however I cannot find a way to check the residuals since
residuals(my_model) and resid(my_model)
does not work.
Any suggestions?
Thanks in advance.
Alex Brito
[[alternative HTML version deleted]]
2005 Dec 13
1
sample matrix
Please, I??d like to store this sample matrix as a new object. How can I
do this ?
pulse <- c(67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71,
71, 72, 72, 73, 74)
m <- NULL
x <- 0
for (i in 1:5)
{
x <- sample(pulse,3)
m <- mean(x)
cat(x,m,"\n")
}
Thanks,
Mauricio
2006 Sep 29
3
if then else
What is the correct form to write statement meaning:
if (a==1) {b=2; c=3}; else {b=0; c=0};
Thank you
Jue Wang, Biostatistician
Contracted Position for Preclinical & Research Biostatistics
PrO Unlimited
(908) 231-3022
2006 Oct 05
1
matrix multiplication
Dear all,
I have 2 matrices, one is a 8x3 matrix, called X; the other matrix is a 3x3 indicator matrix with the diagonal element as 0 or 1. when a variable is included in the model, the corresponding diagonal element is 1, otherwise, it is 0. Let A be a set of matrices that contain the possible indicator matrix. e.g.,
A= [A1, A2, A3],
where A1= [1,0,0;0,0,0,0,0,0],
A2 =[1,0,0;0,1,0,0,0,0],
A3
2006 Oct 05
1
convert day of week from number to character and include in lm
All,
I am trying to include a day of week variable (1-7) in in a regression
model. I would like to have the day of week treated as a categorical
variable rather than a number
the code looks like
lm( dep ~ WKDY)
I know this is a basic question, but help would be appreciated
thanks
spencer
[[alternative HTML version deleted]]
2006 Oct 11
1
extracting rows
Hi,
I have a matrix with few hundred by a few hundred and want to extract rows,
e.g. (0,1,0), or (1.3, 2.4, 4). I made an example:
> A = rep(rep(c(0,1),4),2)
> B = rep(rep(c(0,1),each=4),2)
> C = rep(rep(rep(c(0,1),2),each=2),2)
> X = data.frame(A,B,C,rnorm(16))
A B C
[1,] 0 0 0 0.72767870
[2,] 1 0 0 -0.09673298
[3,] 0 0 1 0.51192790
[4,] 1 0 1 -1.54350441
[5,] 0 1 0
2006 Jul 13
3
set the bahavior that R deal with missing values?
Dear Rusers,
The default behavior in R when performing a regression model with missing
values is to exclude any case that contains a
missing value? How could i set the bahavior that R deal with missing values?
e.g.:
exclude cases listwise
exclude cases pairwise
replace with mean
Thanks very much!
--
Kind Regards,
Zhi Jie,Zhang ,PHD
Department of Epidemiology
School of Public Health
Fudan
2005 Dec 14
2
Append tables
R Help:
I have read a number of tables into R with identical headings and I
would now like to make a single table that has all the data appended
under this single heading line.
for example:
t1 <- read.csv("f1",header=TRUE)
t2 <- read.csv("f2",header=TRUE)
all <- c(t1,t2)
#all is now twice as wide as t1 or t2 with the same number of row!!!!
#I need to know how
2009 Apr 14
5
.GSM -> .WAV (or ,MP3) Conversion
Hey there,
I'm trying to convert some call recordings from asterisk we have in .gsm
format to something I can pipe through ffmpeg - wav would be good, mp3
would be amazing!
I've been trying playing with sox but I don't seem to be getting too far
with
1239101491.30.gsm -ql -r 64000 -t wav 1239101491.30.conv.wav resample
as ffmpeg borks at it:
tim at freee-meee:~/dmc/call
2007 Jul 17
3
TS from DVB-T to Theora + Vorbis
Hello,
Could you kindly point me to some instruction, how to encode demuxed
files (.m2v and .mp2) to .ogg (Theora + Vorbis)? I was trying to use
ffmpeg2theora, but I don't know, how to put two files to ffmpeg2theora
(one audio an one video) and did not found, how to mux them into one
file?
Exist a way, how to do two pass encoding?
I'm using Ubuntu Fiesty Linux.
Thank you,
Jiri Navratil
2006 Mar 30
2
'loop FOR' for make plots
Hello
How to create plots dynamically with results of several analysis ?
I got many outputs from lm fuction like:
mp1.lm mp2.lm mp3.lm mp4.lm mp5.lm ...
I'd like to make experimental versus predicted response plots of all
analysis
in a 'for loop':
for( i in 1:10){
x11()
plot( mp*i*$experimental_response, fitted( mp*i* ) ); abline(0,1)
}
I tried: paste( 'mp', i,
2005 Dec 14
2
The fastest way to select and execute a few selected functions inside a function
Dear useRs?
I have the following problem! I have a function that calls one or more
functions, depending on the input parameters. I am searching for the fastest
way to select and execute the selected functions and return their results in
a list. The number of possible functions is 10, however usually only 2 are
selected (although sometimes more, even all).
For examples, if I have function
2005 Dec 07
4
Maintaining factors when copying from one data frame to another
Greetings all:
OK, this is bugging the @#@%* out of me. I know the answer is simple
and straightforward but for the life of me I cannot find it in the
documentation, in the archives, or in my notes (because I know I've
encountered this in the past). My problem is:
I have a data frame with columns A, B, C, D, and E. A, B, and E are
factors and C and D are numeric. I need a new data frame with
2002 Nov 01
2
[LLVMdev] totally lost
Dear LLVM:
I wrote a small testcase and I can compiler and run it with gcc, But with
llvm, I got weird error like the following. I really don't know what's
going on. Could you explain? Thanks a lot -Jerry
Error Message:
xli3|csil-suna38|~/mp2|[25]% llvmgcc testcase3.c
testcase3.c: In function `init':
testcase3.c:5: warning: cast to pointer from integer of different size
2006 Sep 11
1
S4 Method dispatch in recent 2.4.0alpha
I use 2 packages that both implement a S4 plot method, where one package
depends on the other (the bioconductor package globaltest which depends
on multtest). When the plot method is used from within the package, it
seems the default plot method is used, and an error is generated. When
the method is invoked from the console, the plot is created correctly. I
have reproduced this with 2 small
2004 Apr 14
1
[LLVMdev] Unknown LLVM intrinsic
I'm using the intrinsic llvm.memcpy which I declare at the top of my file:
declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)
and then later use as such:
call void %llvm.memcpy(sbyte* %t12, sbyte* %t13, uint %t9, uint 0)
However when trying to compile the llvm program I get this:
cpp -I/home/class/cs326/mp/mp2/lib cgen_test.ll | sed -e"s/#.*//" >
cgen_test.bc.exp
llvm-as
2006 Nov 22
1
sshd startup error on SCO SR6
Openssh 4.4p1 and 4.5p1
SCO Openserver 6 w/mp1, mp2
While installing v4.5p1, I noticed this sshd syslog error which began
appearing when I upgraded from v4.3p2 to v4.4p1:
Sep 1 17:54:41 tenzing sshd[12837]: error: Bind to port 22 on :: failed: \
Network is unreachable.
sshd -d reports:
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Network is unreachable.
debug1: Bind
2005 Oct 28
2
To CELP or not to CELP ... at higher bitrates
Jean-Marc,
I am building a tool for producing the highest possible quality Internet
interviews for "podcasting" applications. The goal is to produce a perfect
recording of an interview or conference -- and giving the participants a
glitch-free experience is secondary.
My approach, therefore, is to build a Windows "wave" file asynchronously by
using a streaming