Displaying 20 results from an estimated 4000 matches similar to: "an easy way to construct this special matirx"
2010 Aug 31
4
vglm
Hi All,
could anybody help me to understand what is this error means ?
mydata=read.table("C:/Documents and
Settings/angieb/Desktop/CommercialGL/cl_ilf_claimdata.csv",header=TRUE,sep=",")
> names(mydata)
[1] "ILFTable" "liabLimit" "AnnAggLimit" "DedAmt" "Loss"
"TIL"
>
2011 Apr 20
2
get cells by the combination of their column and row names
Hi,
I have a (correlation) matrix and I want to select a subset of its cells depending on the combination of their column and row names.
This illustrates my problem: mtrx <- matrix(c(1,2,3,4,5,6,7,8,9), nrow=3, ncol=3, dimnames = list(c('c132','c432', 'c233'), c('r132','r233', 'r432')))> mtrx r132 r233 r432c132 1 4 7c432 2
2005 Nov 19
5
help with apply, please
Dear list,
I have a problem with a toy example:
mtrx <- matrix(c(1,1,0,1,1,1,0,1,1,0,0,1), nrow=3)
rownames(ma) <- letters[1:3]
I would like to determine which is the minimum combination of rows that
"covers" all columns with at least a 1.
None of the rows covers all columns; all three rows clearly covers all
columns, but there are simpler combinations (1st and the 3rd, or 2nd
2007 May 29
1
look for packages
Dear list members,
I am analysing some microarray data. I have got the differentially
expressed genes and now want to carry out PCA analysis to get the main
components that contribute to the variance.I have browsered the CRAN and
BioConductor and did not find an appropriate package.
Have anybody ever carried out PCA analysis? Is there any package about PCA
in R?
Thanks for your advice.
2009 Jul 28
2
make one matirx in list after removing duplicated rows
Dear R users...
I have a list, "z", below.
z<-list(matrix(c(11,11,9,0,0,0),3,2),matrix(c(10,10,10,1,1,1),3,2),
matrix(c(7,10,1,1),2,2))
> z
[[1]]
[,1] [,2]
[1,] 11 0
[2,] 11 0
[3,] 9 0
[[2]]
[,1] [,2]
[1,] 10 1
[2,] 10 1
[3,] 10 1
[[3]]
[,1] [,2]
[1,] 7 1
[2,] 10 1
>From the list, I need to remove
2005 Sep 04
1
specification for glmmPQL
Hello All,
I have a question regarding how glmmPQL should be specified. Which of
these two is correct?
summary(fm.3 <- glmmPQL(cbind(response, 100 - response) ~ expt,
data = data.1, random = ~ 1 | subject,
family = binomial))
summary(fm.4 <- glmmPQL(response ~ expt, data = data.2,
random = ~ 1 | subject, family =
2012 Mar 13
1
Visualising multiple response contingency tables
Dear R Help Community,
I have a question and an answer (based on reading this forum and online
research), but I though I should share both since probably there's a much
better way to go about my solution. My question is specifically about how
to best visualise multiple response contingency tables. What I mean by
'multiple response' is that the total number of responses per row of a
2009 Oct 29
3
Removing & generating data by category
Dear R users,
Basically, from the following arbitrary data set:
a <-
data.frame(id=c(c("A1","A2","A3","A4","A5"),c("A3","A2","A3","A4","A5")),loc=c("B1","B2","B3","B4","B5"),clm=c(rep(("General"),6),rep("Life",4)))
> a
2009 May 28
3
String replacement in an expression
Dear R-experts,
I need to replace in an expression the character "Cl" by "Cl+beta"
But in the following case:
form<-expression((Cl-(V *ka) ) +(V *Vm *exp(-(Clm/Vm) *t)))
gsub("Cl","(Cl+beta)",as.character(form))
We obtain:
[1] "((Cl+beta) - (V * ka)) + (V * Vm * exp(-((Cl+beta)m/Vm) * t))"
the character "Clm" has been
2010 Sep 26
1
compare a vector and a row of a matrix
From: xxgreat@hotmail.com
To: r-help-bounces@r-project.org
Subject: compare a vector and a row of a matrix
Date: Sun, 26 Sep 2010 23:23:52 +0800
Hi Everyone:
I am trying to compare a vector and rows of a matrix
for example
> xn <- c(1,2,4,4,5,5,5,6)
>yn <- c(1,2,5,7,1,2,3,1)
>mtrx <- cbind(xn, yn)
when I tried, say, > c (1,4), the result was TRUE, TRUE.
2005 May 02
14
eigenvalues of a circulant matrix
Hi,
It is my understanding that the eigenvectors of a circulant matrix are given as
follows:
1,omega,omega^2,....,omega^{p-1}
where the matrix has dimension given by p x p and omega is one of p complex
roots of unity. (See Bellman for an excellent discussion on this).
The matrix created by the attached row and obtained using the following
commands
indicates no imaginary parts for the
2003 Dec 15
2
help in lme
To anyone who can help,
I have two stupid questions, and one fairly intelligent question
Stupid question (1): is there an R function to calculate a factorial of a number? That is...is there a function g(.) such that g(3) = 6, g(4) = 24, g(6) = 720, etc?
Stupid question (2): how do you extract the estimated covariance matrix of the random effects in an lme object?
Intelligent question
2013 Nov 04
1
How to plot results of clmm()?
Dear list,
I'd like to create a visual plot of a clmm() I've fitted using the
'ordinal' package in R. It's possible to do this with a glm() by using
the 'effects' package. For example:
library(effects)
data(BEPS)
mod <- lm(political.knowledge ~ age + gender + vote, data=BEPS)
eff <- effect("age", mod, default.levels=100)
plot(eff,
2010 Aug 20
1
ocfs2 hang writing until reboot the cluster-dlm: set_fs_notified: set_fs_notified no nodeid 1812048064#012
Hello,
I hope this mailing list is correct.
I've a cluster pacemaker with a clone resource ocfs2 with
ocfs2-tools-1.4.1-25.6.x86_64
ocfs2-tools-o2cb-1.4.1-25.6.x86_64
on Opensuse 11.2
After some network problem on my switch I receive on one of 4 nodes of
my cluster the following messages
Aug 18 13:12:28 nodo1 openais[8462]: [TOTEM] The token was lost in the
OPERATIONAL state.
Aug 18 13:12:28
2009 Jan 22
4
text vector clustering
Hi,
I am a new user of R using R 2.8.1 in windows 2003. I have a csv file with
single column which contain the 30,000 students names. There were typo
errors while entering this student names. The actual list of names is <
1000. However we dont have that list for keyword search.
I am interested in grouping/cluster these names as those which are
similar letter to letter. Are there any
2008 May 07
7
questions from a 10GbE driver author
Hi,
I maintain a driver for a 10GbE nic which supports multiple hardware tx/rx rings. We can steer rx packets into rings using the "standard" NDIS6 Toeplitz hashing on TCP port numbers, IP addresses, etc. We can also steer packets based on MAC address. Would this NIC be considered to be capable of supporting crossbow?
Also, can crossbow do things like steer outgoing packets to the
2013 Apr 15
1
Optimisation and NaN Errors using clm() and clmm()
Dear List,
I am using both the clm() and clmm() functions from the R package
'ordinal'.
I am fitting an ordinal dependent variable with 5 categories to 9
continuous predictors, all of which have been normalised (mean
subtracted then divided by standard deviation), using a probit link
function. From this global model I am generating a confidence set of 200
models using clm() and the
2006 Jul 17
3
POP3: Keep a copy on server failed ...
I have a big problem with our cluster, if i read my mail with POP3
client (and check the option, keep a copy on server), every time I read
my mail, my client retrive ALL messages an the mailbox !!!
I test this with:
- Apple Mail 1.0 + 2.0
- M$ Outlook 2000 + 2003
- Thunderbird
We use:
- Dovecot RC1
- Postfix on Debian Sarge (stable)
Can you know this bug ? Or have a workaround ?
This function
2011 Jan 16
1
\examples{} in Rd file
[Hope this is the right list where to send...]
An attempt to update package 'mnormt' involves the addition of a
small new function called 'pd.solve'. When I come to the package
checking stage, an error occurs in parsing pd.solve.Rd.
The full transcript of the outcome is copied below (it includes details
on my installation) but the critical point is where the \examples{}
section
2005 May 03
2
Fwd: Re: eigenvalues of a circulant matrix
Looks like the files did not go through again. In any case, here is the kinv:
please cut and paste and save to a file:
-1.16801E-03 -2.24310E-03 -1.16864E-03 -2.24634E-03 -1.17143E-03
-2.25358E-03 -1.17589E-03 -2.26484E-03 -1.18271E-03 -2.27983E-03
-1.19124E-03 -2.29896E-03 -1.20164E-03 -2.32206E-03 -1.21442E-03
-2.34911E-03 -1.22939E-03 -2.38073E-03