Displaying 20 results from an estimated 11000 matches similar to: "how to call a C-library in R"
2009 Nov 15
4
pairs
Hi, All,
I have an n by m matrix with each entry between 1 and 15000. I want to know
the frequency of each pair in 1:15000 that occur together in rows. So for
example, if the matrix is
2 5 1 6
1 7 8 2
3 7 6 2
9 8 5 7
Pair (2,6) (un-ordered) occurs together in rows 1 and 3. I want to return
the value 2 for this pair as well as that for all pairs. Is there a fast way
to do this avoiding loops?
2011 Apr 09
1
integration
Hi, All,
I have a density function with 3 variables which is defined on some
irregular domain, and I want to get the marginal distribution of each
variable. Is there any function doing this?
A simple example is p(x,y,z)=x*y*z*I(xy>z). So each marginal distribution is
a function of the other two variables. My density form is very complicated,
so I cannot do it by hand. I was just wondering if
2009 Aug 10
2
matrix power
Hi, All,
If I have a symmetric matrix, how can I get the negative square root of the
matrx, ie. X^(-1/2) ?
Thanks,
Cindy
[[alternative HTML version deleted]]
2009 Jul 27
2
local regression using loess
Hi, All,
I have a dataset with binary response ( 0 and 1) and some numerical
covariates. I know I can use logistic regression to fit the data. But I want
to consider more locally. So I am wondering how can I fit the data with
'loess' function in R? And what will be the response: 0/1 or the probability
in either group like in logistic regression?
Thank you,
Cindy
[[alternative HTML
2009 Jul 29
2
install package from CRAN
Hi,
I have a very basic question about install packages from CRAN on unix. I
only installed on Windows before. Should I use the command install.package?
The error message I got is
syntax error near unexpected token `"mvtnorm"'
Is it because I didn't set the path? Which path should I specify?
Thanks,
Cindy
[[alternative HTML version deleted]]
2008 Jul 24
1
R-package install
Hi, I have a R package, which is a .tar.tar file. And it is said to be
source code for all platforms. And the author said it should install on any
system (but he didn't know about Windows). I am wondering if I can use this
package in Windows R.
Thank you,
Cindy
[[alternative HTML version deleted]]
2008 Jul 23
2
truncated normal
Hi, I want to generate random samples from truncated normal say
Normal(0,1)Indicator((0,1),(2,4)). It has more than one intervals. In the
library msm, it seems to me that the 'lower' and 'upper' arguments can only
be a number. I tried rtnorm(1,mean=0,sd=1, lower=c(0,2),upper=c(1,4)) and it
didn't work. Can you tell me how I can do truncated normal at more than one
intervals?
2009 Feb 09
1
question about mean
Hello, everyone,
I have a matrix like following:
school value
A .1
A .2
A .15
A .2
B .3
B .5
C .3
C .3
C .4
C .5
C .6
C .9
C 1
I want to get the mean 'value' for each 'school', but each school has
different length. Is there any way to do this fast? Because my
2009 Jul 26
1
normal mixture model
Hi, All,
I want to fit a normal mixture model. Which package in R is best for this? I
was using the package 'mixdist', but I need to group the data into groups
before fitting model, and different groupings seem to lead to different
results. What other package can I use which is stable? And are there
packages that can automatically determine the number of components?
Thank you,
Cindy
1999 Jan 08
2
mapping drives
I'm new to Samba, and we just loaded it here at our site to
interact with NT. We're running Sun Solaris 2.5.1, and
NT TERMINAL SERVER 4.0. (Forgive the caps, but we've found
this multi user environment wreaks havoc on some
applications). The drives are served out fine, and everyone
can map under the user id they have logged onto NT with.
All NT ids match the Unix id. However, you
2008 Jul 27
4
product of successive rows
Hi everyone,
I want to perform an operation on a matrx that outputs the product of
successive pairs of rows. For example: calculating the product between rows
1 & 2; 3 & 4; 5 & 6...etc.
Does anyone know of any readily available functions that can do this?
Thanks,
rcoder
--
View this message in context: http://www.nabble.com/product-of-successive-rows-tp18681259p18681259.html
2008 Aug 12
7
ignoring zeros or converting to NA
Hi everyone,
I have a matrix that has a combination of zeros and NAs. When I perform
certain calculations on the matrix, the zeros generate "Inf" values. Is
there a way to either convert the zeros in the matrix to NAs, or only
perform the calculations if not zero (i.e. like using something similar to
an !all(is.na() construct)?
Thanks,
rcoder
--
View this message in context:
2008 Aug 13
3
conditional IF with AND
Hi everyone,
I'm trying to create an "if" conditional statement with two conditions,
whereby the statement is true when condition 1 AND condition 2 are met:
code structure:
if ?AND? (a[x,y] <condition1>, a[x,y] <condition2>)
I've trawled through the help files, but I cannot find an example of the
syntax for incorporating an AND in a conditional IF statement.
2009 Feb 02
8
ZFS core contributor nominations
The time has come to review the current Contributor and Core contributor
grants for ZFS. Since all of the ZFS core contributors grants are set
to expire on 02-24-2009 we need to renew the members that are still
contributing at core contributor levels. We should also add some new
members to both Contributor and Core contributor levels.
First the current list of Core contributors:
Bill
2008 Nov 03
2
Multiple Submit Buttons
Hello.
I have run into a new form that contains multiple submit buttons.
Currently my code for working with forms looks just like this example.
require ''rubygems''
require ''mechanize''
a = WWW::Mechanize.new { |agent|
agent.user_agent_alias = ''Mac Safari''
}
a.get(''http://google.com/'') do |page|
2013 Mar 22
1
LAST CALL: zfs-discuss is moving Sunday, March 24, 2013
I hope to see everyone on the other side...
***************************************
The ZFS discussion list is moving to java.net.
This opensolaris/zfs discussion will not be available after March 24.
There is no way to migrate the existing list to the new list.
The solaris-zfs project is here:
http://java.net/projects/solaris-zfs
See the steps below to join the ZFS project or just the
2004 Oct 21
1
I have a question
Hello!
Could you tell me how to write R programming code about "Test the hypothesis that £l=0.5 ?"
Thank you!
Cindy
---
[[alternative HTML version deleted]]
2008 Jul 09
2
shifting data in matrix by n rows
Hi everyone,
I have some data in a matrix, and I want to shift it down by one row. The
matrix in question has a date column. Does anyone know of a way to shift the
data by one row, whilst preserving the date column in the matrix - i.e.
shift the data and leave the date column in the current location?
Thanks,
rcoder
--
View this message in context:
2010 Sep 09
3
polarcypto and tsi libraries, needed in Wine
Doe anyone know where I can get
PolarCrypto.dll and
TSI.dll
libraries from so that I can load them through Wine on my Mac.
I was lucky enough to get other libraries that I was missing from Winetricks but still need these last two. I get error messages that they are needed when I try to load TroopMaster 2010 application through Wine on a Mac. Thanks
2023 Jun 30
2
[PATCH] vp_vdpa: synchronize irq when free irq
This commits synchronizes irqs when free them
Signed-off-by: Zhu Lingshan <lingshan.zhu at intel.com>
Tested-by: Cindy Lu <lulu at redhat.com>
---
drivers/vdpa/virtio_pci/vp_vdpa.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/vdpa/virtio_pci/vp_vdpa.c b/drivers/vdpa/virtio_pci/vp_vdpa.c
index 281287fae89f..d8ee3e68cd2d 100644
--- a/drivers/vdpa/virtio_pci/vp_vdpa.c