Displaying 20 results from an estimated 200 matches similar to: "How to take the average of multiple rows"
2008 Apr 12
2
Predict Function
Hi all - my first time here and am having an issue with the Predict function.
I am using a tutorial as a guide, locate here:
http://www.ats.ucla.edu/STAT/R/dae/mlogit.htm
My code gives this error
> newdata1$predicted <- predict(mlogit,newdata=newdata1,type="response")
Error in `$<-.data.frame`(`*tmp*`, "predicted", value = c(0.332822934960197,
:
replacement has
2010 Feb 18
1
logistic regression - what is being predicted when using predict - probabilities or odds?
Dear gurus,
I've analyzed a (fake) data set ("data") using logistic regression (glm):
logreg1 <- glm(z ~ x1 + x2 + y, data=data, family=binomial("logit"),
na.action=na.pass)
Then, I created a data frame with 2 fixed levels (0 and 1) for each predictor:
attach(data)
x1<-c(0,1)
x2<-c(0,1)
y<-c(0,1)
newdata1<-data.frame(expand.grid(x1,x2,y))
2013 May 21
1
keep the centre fixed in K-means clustering
Dear R users
I have the matrix of the centres of some clusters, e.g. 20 clusters each
with 100 dimentions, so this matrix contains 20 rows * 100 columns numeric
values.
I have collected new data (each with 100 numeric values) and would like to
keep the above 20 centres fixed/'unmoved' whilst just see how my new data
fit in this grouping system, e.g. if the data is close to cluster 1
2011 Jan 30
2
problem reading file containing bit vector
Hi I have a tab delimited file with fillowing content:
"swissProtID" "entrezID" "bitVec"
"Q62924" "---" "00000000100010000000000000000000"
"P18897" "---" "00000000000001000100000000000000"
"Q62736" "---"
2007 Jun 25
3
a string to enviroment or function
Hi,
I am wondering how to make a function Fun to make the following work:
t0 <- (paste("hgu133a", "ENTREZID", sep=""))
xx <- as.list(Fun(t0)) # make it work like xx<-as.list(hgu133aENTREZID)
thanks,
--
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.
"Did you always know?"
"No, I did not. But I believed..."
---Matrix III
2013 Apr 03
1
linear model coefficients by year and industry, fitted values, residuals, panel data
Hi R-helpers,
My real data is a panel (unbalanced and with gaps in years) of thousands of firms, by year and industry, and with financial information (variables X, Y, Z, for example), the number of firms by year and industry is not always equal, the number of years by industry is not always equal.
#reproducible example
firm1<-sort(rep(1:10,5),decreasing=F)
year1<-rep(2000:2004,10)
2008 Jun 14
1
how to select out some columns using cbind()
Hello! I have a matrix:
> dim(data1)
[1] 34176 581
of 34176 rows and 581 columns,
I want to make a new matrix data2 by taking the 2nd column, 9th column, 16th
column....
the column number is in the order of:
2
9 (2+7)
16 (9+7)
23 (16+7)
...
the new matrix data2 should include 83 columns, is there an easy way to
do that using cbind() function?
Thanks a lot!
Allen
[[alternative HTML
2012 Dec 12
2
help with predict.glm, and charting with factors
Dear R Wizards,
After much frustration and days of confusion I have finally broken down and
am asking for help, which I don’t like doing, but I just can’t figure this
one out on my own. I’ve conducted a laboratory experiment testing the
effects of temperature and salinity on whether or not a biological event
will occur (Go or NoGo). I’ve coded the factors temperature and salinity
as factors for
2011 Sep 27
0
Keep consecutive year observations (remove gap's) in panel data (dataframes). Difficulties in using lag(). Package plm.
Hi everyone.
I have two questions. I’ve found some other questions and answers similar to
these but they didn’t solve my problem.
I’m working with a panel of firm/years observations (see my reproducible
example). I’m using the plm package.
My panel not only is unbalanced but also have some gap’s in years.
#reproducible example
2006 Nov 09
2
register suddenly fails
Hi everybody,
I've got a very strange problem:
As far as I remember I didn't change anything on my Asterisk side. I
have 2 SIP providers to which I can place outbound calls.
Today I noticed that outbound calls to provider "inode" fail (and
inbound from this provider too). On the CLI I get every 20 seconds
following messages:
Nov 9 20:01:07 NOTICE[952]: chan_sip.c:5422
2010 Mar 29
2
Speex on TI DSP 5505
Saju Palayur <saju_pa at hotmail.com> writes:
> Hi
>
>
>
> We have ported the Narrow band 8 Khz Speex encoder and decoder on to TI DSP 5505
>
>
>
> To compress 20ms of 16 bit audio sampled at 8Khz it takes 4.2ms.
>
> Is there any optimizations I can do to make it run faster.
The first thing to do would be to profile the code (I assume you're
using
2005 Aug 03
1
Incoming SIP from Cisco 7206
I am running an Asterisk server through a Cisco 7206 PSTN gateway. I am
able to make outgoing SIP calls without a problem, though incoming calls
have been somewhat of a problem. I am not sure exactly how sip.conf should
look in such a scenario.
I believe most Cisco gateways are just managed through ACL's, with no
authentication, so I think I have the outgoing "peer" statement
2012 Oct 24
2
every 2nd echo-request malformed when ping -s >4067
Hello,
while checking new mtu9k-setup, I discovered that ping has some odd
behaviour.
If I use payloadsize > 4067, every 2nd icmp-echo-request seems to be
malformed:
ping -s 4068 -D 10.5.49.65
1st: 12:21:09.048447 IP 10.5.49.126 > 10.5.49.65: ICMP echo request, id
46597, seq 0, length 4076
0x0000: 4500 1000 0f2d 4000 4001 a507 0a05 317e
2nd: 12:21:10.052891 IP 10.5.49.126 >
2011 Dec 07
2
[LLVMdev] Executable file size comparison
I compiled a program and standard library using clang/LLVM and found the
results interesting:
text data bss dec hex filename
141312 4076 16668 162056 27908 bzip2.arm
131764 4076 16668 152508 253bc bzip2.armv7
134748 4048 16624 155420 25f1c bzip2.i386
259112 4028 16732 279872 44540 bzip2.microblaze
168044 4040 16816 188900 2e1e4
2011 Dec 08
2
[LLVMdev] Executable file size comparison
On Thursday, December 08, 2011 02:46:39 AM Csaba Raduly wrote:
> On Wed, Dec 7, 2011 at 9:43 PM, Richard Pennington wrote:
> > I compiled a program and standard library using clang/LLVM and found the
> > results interesting:
> >
> > text data bss dec hex filename
> > 141312 4076 16668 162056 27908 bzip2.arm
> > 131764 4076
2008 May 31
1
DO NOT REPLY [Bug 5505] New: rsync 3.x reporting excluded files as error
https://bugzilla.samba.org/show_bug.cgi?id=5505
Summary: rsync 3.x reporting excluded files as error
Product: rsync
Version: 3.0.2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: nhasan@nadmm.com
2010 Mar 22
3
Speex on 64bit OS
Hi all,
has anyone ever tested the speex source on a 64bit OS. I am interested if
the source is ready for x64 platforms.
Cheers,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20100322/dd4b9645/attachment.htm
2011 Dec 08
0
[LLVMdev] Executable file size comparison
On Wed, Dec 7, 2011 at 9:43 PM, Richard Pennington wrote:
> I compiled a program and standard library using clang/LLVM and found the
> results interesting:
>
> text data bss dec hex filename
> 141312 4076 16668 162056 27908 bzip2.arm
> 131764 4076 16668 152508 253bc bzip2.armv7
> 134748 4048 16624 155420 25f1c bzip2.i386
>
2011 Jun 01
1
Replacing variables in one dataset with those from another
Hoping someone out there can help me...this seems like an easy task but I
can't figure it out...
I want to replace variables in one dataset (Dataset1) with a variable from
another dataset (Dataset2).
All the values for variables x1 and x2 in Dataset1 have a unique match to
the variable uniquenum in Dataset2. For example, in Dataset1 grpnum A has a
value of 343 for variable x1. In Dataset2,
2011 Dec 09
0
[LLVMdev] Executable file size comparison
On Thu, Dec 8, 2011 at 11:46 PM, Richard Pennington wrote:
> On Thursday, December 08, 2011 02:46:39 AM Csaba Raduly wrote:
>> On Wed, Dec 7, 2011 at 9:43 PM, Richard Pennington wrote:
>> > I compiled a program and standard library using clang/LLVM and found the
>> > results interesting:
>> >
>> > text data bss dec hex filename