Displaying 20 results from an estimated 900 matches similar to: "working with matrix"
2010 Jul 01
5
identifying odd or even number
Hi, I run into problem when writing a syntax, I don't know syntax that will return true or false if an integer is odd or even.
Thanks
OYEYEMI, Gafar Matanmi
Department of Statistics
University of Ilorin
P.M.B 1515
Ilorin, Kwara State
Nigeria
Tel: +2348052278655
Tel: +2348068241885
[[alternative HTML version deleted]]
2013 Apr 19
3
Reading CSV file
I am trying to read a csv file using the code;
contol <- read.csv("RBS.csv")
This is the error message I got;
Error in file(file, "r") : unable to open connection
In addition: Warning message:
In file(file, "r") :
cannot open file 'RBS.csv', reason 'No such file or directory'
Where was the mistake?
--
OYEYEMI, Gafar Matanmi (Ph.D)
Senior
2008 May 07
3
Importing data
Hi everyone, please I'm having problem importing data from Stata and excel. Help me out.
Thanks
---------------------------------
[[elided Yahoo spam]]
[[alternative HTML version deleted]]
2010 Dec 30
1
Problem with my analysis
Dear R-users,
I have problem or at cross-road on using discrminant
analysis for my set of data. All my dependent variables are all categorical,
hence the normalty assumption is no longer valid. Is it still right to use
discrminant analysis or is there any non-parametric technique or approach to
discriminant analysis?
Thanks OYEYEMI, Gafar Matanmi
Department of Statistics
2010 Dec 30
1
Discriminant analysis
Dear R-helpers
I am having problem or reservation analyzing my data
using discrminant analysis. The problem is that all my dependent variables are
categorical which means that the normalty assumption is no longer valid. Can one
still use discrminant analysis for such data? Is there non-parametric technique
of doing discrminant analysis in R.
Thanks
OYEYEMI, Gafar
2007 May 23
1
Eigen values
Dear,
My problems are;
1. Simulate a P-variate multivariate data set (N by P)
2. Draw samples of size n from N (with or without replacement)
3. Obtain eigen values of the variance-covariance matrix of each
sample drawn in (2) above.
4. print out the matrix of eigen values as well as the identity of
sample generating them.
Thanks
---------------------------------
2008 Mar 31
1
Retrieving locations of element of a vector or matrix
Hello all,
I have a problem of getting the locations of elements in a vector or matrix. I know one can use the command "which.min" or which.max" to get the location of minimum or maximum values in a vector. But is there any command to get the first k minimum values or maximum values in a vector.
Thanks
---------------------------------
You rock. That's why
2008 Aug 22
1
Retrieving sample points
Hi everyone. My problem is about multivariate analysis. Given a multivariate data X, of dimension (n by p), n is the number of observations while p is the number of variables. I wanted a sample of size p+1 that will have its product of the eigen values of the covariance matrix to be the minimum among all the possible samples (n combination (p+1)). I have written a syntax with worked well, but the
2008 May 09
1
Multivariate simulation
Dear everyone, I am having problem simulating multivariate data. Though I was able to simulate the data, but finding the variance-covariance matrix of simulated data did not give exact covariance matrix used in simulating the data. Unlike some other packages, like stata, using command "corr2data" will simulate data having the covariance matrix exactly with the specified covariance
2017 Oct 31
0
lasso and ridge regression
Dear All
The problem is about regularization methods in multiple regression when the
independent variables are collinear. A modified regularization method with
two tuning parameters l1 and l2 and their product l1*l2 (Lambda 1 and
Lambda 2) such that l1 takes care of ridge property and l2 takes care of
LASSO property is proposed
The proposed method is given
2004 Jun 12
2
Script editor using a browser??
Hello all,
I have a some scripts on my Linux box, i want to be
able to edit it remotely from a browser login into my
server at a particular port number, just like Webmin,
SWAT etc. eg( http://mylinuxaddy:port).
Does any body have idea of how i can acheive this?
I would appreciate your response.
Thanx
--Yemi
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new
2004 Jun 13
1
upgrading iproute2
Hi.
I have Fedora core 1 (kernel 2.4.22) and I downloaded
http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.7-ss040608.tar.gz
Before upgrading, tc -V shows "iproute2-ss020116", and after shows the
same.
I had a lot of errors during install (make and make install).
Is this lastest version for kernel 2.4?
How can I upgrade??
Thanks a lot.
Leandro
2004 Jun 11
5
routing within the same network? is it possible?
Hello,
Is routing within the same network possible?
If it is, what configuration should I put for the firewall/router shown below? I basically want the host debian13 to be able to send packets via a multi-homed firewall. I think the multi-homed firewall involve some routing.
+-------------------+
|debian13 |
|eth0:192.168.0.13 |
+-------------------+
|eth0
|
2007 Jul 06
1
Changing Tick Mark Values for lattice / wireframe
How can I change the tick mark values in lattice, specifically wireframe?
I have a 11*46 matrix of values that I am plotting using wireframe.
Unfortunely, the values range from 0.1-1.1 and 0.5-5. Using the code
below the tick marks have are (2,4,6,8,10) and (10,20,30,40).
Thanks in advance.
graphic5 <- wireframe(output.matrix, shade= TRUE,
scales = list(arrows = FALSE,
cex=.6,
2003 Nov 09
1
weird behaviour of eigen()
I'm using R 1.7.1 under linux redhat
it seems that the eigen values produced by eigen() do not follow
a consistant order; I mean either ascending or discending
e.g
for one system:
eigenV<-eigen(V)
> print(eigenV$values)
[1] -7.706828e+13 -4.702980e+13 -3.267579e+13 -1.701297e+13
-8.041677e+12
[6] -5.707311e+12 -5.053941e+12 -4.774652e+12 -4.280423e+12
-3.798905e+12
2008 Jun 21
1
converting an R function into VBA
Hi everyone,
I want to convert an R function into VBA for calculating the eigenvectors and eigenvalues of a matrix using the "Power Method". The function is:
PowerMethod <- function(x, tolerance) {
my.mat <- var(x[,-1], na.method="available")
matSize <- dim(my.mat)[1]
eigenVec <- matrix(NA, nrow=matSize, ncol=matSize)
eigenVal <- rep(NA,
2007 Feb 26
1
match() function with a little enhancement
Dear R users,
I was wondering if R has a built-in function doing the following :
my_match(values_vector,lookup_vector)
{
for each value of values_vector :
if value %in% lookup_vector, then value is unchanged
else, value is changed the the closest element of lookup_vector, "closest"
meaning "the one that would come just after if we sorted them using order()"
}
For example :
2004 Aug 23
1
Problem with mysql and with asterisk
Hi Every one and Lerale Erwan
I have briefly describe my problem and I have provide the steps as follows:
I have intalled redhat properly and from the konsole I checked with mysql.
"rpm -qa | grep mysql" and the konsole provide me the message:
mysql-3.23.54a-11
mysql-server-3.23.54a-11
Then I have download the asterisk and addons:
By the using of :
cd /usr/src
export
2013 Aug 16
4
Restoring deleted files.
Hi,
is it possible to Restore files deleted with " rm rf " from ext4 or
ext3 filesystem by mistake.
Regards
Ahmad
2007 May 09
3
Removing a list of Objects
Hi,
I have a simple beginner's question on removing a list of
objects. Say I have objects C243.Daily1, C243.Daily2...C243.Daily5 in my
workspace. I'd like to remove these without using rm five times.
So I write.
> a <- list(paste("C243.Daily",sep="",1:5))
> rm(a)
Obviously this wouldn't work, as it would only remove the object a.
But is there any way