Displaying 9 results from an estimated 9 matches for "pingzhao".
2003 Apr 25
1
plot clusters
Hi,
I have a dataset which has more than two clusters (say 3 clusters).
I used kmeans to cluster the dataset.
I am wondering how I can plot the clustering result on a two-dimensional
figure????
The example in the kmeans help file is as follows:
x <- rbind(matrix(rnorm(100, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 1, sd = 0.3), ncol = 2))
cl <- kmeans(x, 2, 20)
2003 Mar 20
1
Install R on unix
...upport: yes
R as a shared library: no
Recommended packages: yes
configure: WARNING: you cannot build DVI versions of the R manuals
configure: WARNING: you cannot build info versions of the R manuals
configure: WARNING: you cannot build PDF versions of the R manuals
slri05:/home/pingzhao/R/R-1.6.2> make
creating src/scripts/R.fe
mkdir -p -- ../../bin
Stata 6 installation
--------------------
The installation files are missing
(no action taken)
*** Error code 1
make: Fatal error: Command failed for target `install-cmds'
Current working directory /home/pingzhao/R/R-1.6.2/s...
2003 May 25
3
Problem in installing R add-on package(not from CRAN)
Hi all,
I downloaded a R package (supclust, not from CRAN) in my directory, then type:
markov:/home/pingzhao> R CMD INSTALL supclust_1.1.tar.gz -l ~/lib
but met the following errors
* Installing *source* package 'supclust' ...
** libs
/usr/local/lib/R/bin/SHLIB: make: not found
ERROR: compilation failed for package 'supclust'
Does it mean the R has not properly installed? what are p...
2003 Mar 17
2
search function
Could any one tell me there is a search
function for R-help Archives?
Thanks
2003 Apr 14
2
kmeans clustering
Hi,
I am using kmeans to cluster a dataset.
I test this example:
> data<-matrix(scan("data100.txt"),100,37,byrow=T)
(my dataset is 100 rows and 37 columns--clustering rows)
> c1<-kmeans(data,3,20)
> c1
$cluster
[1] 1 1 1 1 1 1 1 3 3 3 1 3 1 3 3 1 1 1 1 3 1 3 3 1 1 1 3 3 1 1 3 1 1 1 1 3
3
[38] 3 1 1 1 3 1 1 1 1 3 3 3 1 1 1 1 1 1 3 1 3 1 1 3 1 1 1 1 3 1 1 1 1 1 1 3
2003 Sep 29
2
problem in integrating C routine with R on windows XP
Hi All,
I a C function code, which has been successed in integrating
with Splus on Unix. Now I want to move it on windows.
So I want to integrate this C function with R on windows XP.
I download tools.zip and saved it in c:\bin directory,
download MinGW and saved it in c:\MinGw directory,
download Perl and saved it in c:\Perl directory.
My path is set as:
2003 Feb 06
1
Call C routine problem
When I call C function from Splus, I often meet this problem:
"Problem: Couldn't find a function definition for "Stest" "
My c function is saved as 'test.c' (the function is also named as 'test'
My splus function is saved as 'Stest', such as
Stest <-
function(d,f)
{
.C("test",
as.integer(d),
as.single(f))
}
Assume my files (test.c
2010 Sep 08
0
How to get OR and CI from GEE R package
...vel)/4, trace = trace) :
subscript out of bounds
Error in exp(cbind(coef(gee.obj), confint(gee.obj, level = 0.9))) :
Non-numeric argument to mathematical function
> exp(coef(gee.obj)
+ )
(Intercept) Sibsex2 Probandsex2
0.2005441 1.4184760 1.7585698
Thank you for your help,
pingzhao
[[alternative HTML version deleted]]
2003 Jul 21
0
general location model
Dear R-helpers,
I am trying to use general location model for a set of category and
continuous variables (medical dataset).
Does any one know where I can find this kind of R source code????
Mix package (R code) has functions for
restricted and unrestricted general location models, but it seems that
they can only handle datasets with missing values (????). My dataset has no
missing value, so I