Displaying 20 results from an estimated 200 matches similar to: "Recompile a package"
2008 Mar 18
1
how to reset slogic.f file
Hi there:
recently i try to use LogicReg package for a tree model(logistics fit )
. i list my code and error below:
> dim(model.dat)
[1] 48000 745
> fit1 <- logreg(resp = model.dat[,745], bin=model.dat[, 9:700], type = 3,
select = 3, ntrees = c(1,2), nleaves=c(1,7), )
Insufficient declaration
LGCn1MAX in logreg() is 20000
LGCn1MAX should be at least 48000
Please fix and
2012 May 13
1
Problem compiling package LogicReg - make Error 255
Hello all,
I've been using the R package LogicReg, but ended up having to change a
certain parameter in the Fortran 77 code (namely, I had to change LGCntrMax
to 25 in the file slogic.f).
I am using a 64-bit Windows 7 machine. When I tried to compile, I got the
following error:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
C:\Program
2013 Jun 26
3
match rows of R
Hi all,
What would be an efficient way to match rows of a matrix to a vector?
ex:
m<-matrix(1:9, nrow=3)
m [,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
#################################
which(m==c(2,5,8)) # I want this to return 2
######################
Thanks,
Sachin
[[alternative HTML version deleted]]
2010 Nov 09
1
library(kernlab) --- unable to load shared library
Dear R users,
I have recently encountered a problem with using the function `library` in
order to load the package `kernlab`.
My output of sessionInfo() is as follows:
R version 2.10.1 (2009-12-14)
x86_64-unknown-linux-gnu
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
I have installed the package by
2012 Jan 21
1
recomile a dll file in R
dear all,
I created a dll file from a fortran program. How I can recompile it in R? I
use "dyn.load(F:/myprogram.dll)" without any error but when I run
"source(F:/myprogram.r)" this error occurs:
"Error in file(file, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(file, "r", encoding = encoding) :
2010 Oct 10
1
segfault caused by `icfit` in `interval` package
Dear R community,
I am using the R package `interval` in order to perform some modelling
tests of the
NPMLE convergence in the case of censoring. So all I am doing is drawing a
sample
from exponential distribution, making it a censored sample and computing the
NPMLE of
its distribution function. But when run on Linux Calculate 10.4 the program
keeps
crashing and reporting a segmentation fault
2010 Nov 22
2
how to loop through variables in R?
After importing a table with "M" variables and "N" records, I'd like to
calculate chi-square statistics, say, between N1, N2; N1, N3, ..., N1, Ni,
and then N2, N3, ... N2, Ni, ..., Ni-1, Ni. Two loops should be ok but the
manual & online help don't show a systematic way to do so but instead show
hard-code examples so users have to type in the names themselves one
2005 Feb 23
1
Problem saving logic regression result equation to disk file
I want to get some "simple" logic regression examples to work before
exploring a hard problem.
I can get results, but I'm having some problems using "cat" to save the
logic regression equation to a disk file.
Consider this:
# Simple Logic Regression Example
# efg, 23 Feb 2005
library(LogicReg)
# Create simulated data with known logic equation:
# "noise"
2012 Nov 01
0
oblique.tree : the predict function asserts the dependent variable to be included in "newdata"
Dear R community,
I have recently discovered the package oblique.tree and I must admit that
it was a nice surprise for me,
since I have actually made my own version of a kind of a classifier which
uses the idea of oblique splits (splits by means of hyperplanes).
So I am now interested in comparing these two classifiers.
But what I do not seem to understand is why the function
2005 Nov 08
3
The problem with rcom pakage
I have the problem with rcom 1.2.2 package. It does't work with R 2.2.0.
Is there any opportunities to correct the work of this package?
Thanks for your help.
Yulia
2006 Apr 07
2
a statistics question
Hi there,
I have a statistics question on a classification problem:
Suppose I have 1000 binary variables and one binary dependent variable. I
want to find a way similar to PCA, in which I can find a couple of
combinations of those variables to discriminate best according to the
dependent variable. It is not only for dimension reduction, but more
important, for finding best way to construct
2010 Nov 18
1
custom package not installed for 'arch=i386'
Dear all,
Since version R-2.12.0, I've got problems building an add-on package for R
("imglib" here) for 32-bit Windows.
The following command is called:
C:\Program Files\R\R-2.12.0\bin\i386\Rcmd build --binary imglib
And here is an error I am getting in the end of processing:
** testing if installed package can be loaded
Error : package 'imglib' is not installed for
2008 Jul 10
1
package has a loading problem
Hello,
I have difficulties in finding why I cannot load a custom R package in
Linux (Suse 10). When I run R CMD check for a package source folder I
get the following message:
".....
Error in dyn.load(file, ...) :
unable to load shared library
'/home/yarz/projects/Riman/Riman.Rcheck/Riman/libs/Rimanlib.so':
/home/yarz/projects/Riman/Riman.Rcheck/Riman/libs/Rimanlib.so:
undefined
2006 Jun 06
2
Error in inherits(x, "data.frame") : object "Dataset" not found
I have been trying to run a logistic regression using a number of studies.
Below is the syntax, error message & data.
Any advice regarding what I am doing wrong or solutions are appreciated,
regards
Bob Green
> logreg <- read.csv("c:\\logregtest.csv",header=T)
> attach(logreg)
> names(logreg)
[1] "medyear" "where" "who"
2005 Feb 10
1
skip missing values in plots
I really like these Trellis graphics but how do I get this code to
skip the missing?
logreg<-read.csv("logreg.csv", header=TRUE, sep=",", na.string=" ")
attach(logreg)
bwplot(yesno~bc_pcb_tot |varlist, data=logreg, main="Box Cox PCB
transformation", auto.key=TRUE, fontfamily = "HersheySans" )
Dean Sonneborn M.S.
Public Health Sciences *
2005 Jul 19
2
Regression lines for differently-sized groups on the same plot
Hi there,
I've looked through the very helpful advice about adding fitted lines to
plots in the r-help archive, and can't find a post where someone has offered
a solution for my specific problem. I need to plot logistic regression fits
from three differently-sized data subsets on a plot of the entire dataset.
A description and code are below:
I have an unbalanced dataset
2008 Oct 23
0
error when using logistic.display within a loop
Dear list,
I tried to apply the logistic regression to different response variables from a dataframe and would like to store the results using the function logistic.display from the "epicalc" package in a list, but got an error message "Error in eval(expr, envir, enclos) : y values must be 0 <= y <= 1". All the response variables have value of 0 or 1. It worked
2008 Oct 17
1
Package
Hi,
I was trying to plot the logistic regression from a regression "logreg"
I just ran.
I downloaded the "car" package from the R website and went to Packages
-> install package from local zip file
I checked in my library file and the package is there. I restarted R.
I then ran the command:
reg.line(logreg,col=palette()[2], lwd=2, lty=1)
And I get the error:
Error: could
2003 Dec 05
3
Odds ratios for categorical variable
Dear R-users:
How does one calculate in R the odds ratios for a CATEGORICAL predictor
variable that has 4 levels. I see r-help inquiries regarding odds ratios
for what looked like a continuous predictor variable. I was wondering how
to get the pairwise odds ratios for comparisons of levels of a categorical
predictor variable. I can't seem to get the correct output using:
>
2007 Mar 26
1
Problem in loading all packages all at once
Hi All
Please see the Rprofile file which i have modified as follows and after
that when I start R then I see that R says to me "TRUE" for all the
packages implying that all loaded at once.
But when i try to use commands as simple as help("lm"), it doesnt work nor
any of the menu "Packages" is not working.
Although the regression using lm ( Y ~ X ) is working