Displaying 20 results from an estimated 3000 matches similar to: "Data frame vs matrix quirk: Hinky error message?"
2011 May 10
1
Filtering out bad data points
Hi,
I always have a question about how to do this best in R. I have a data
frame and a set of criteria to filter points out. My procedure is to
always locate indices of those points, check if index vector length is
greater than 0 or not and then remove them. Meaning
dftest <- data.frame(x=rnorm(100),y=rnorm(100));
qtile <- quantile(dftest$x,probs=c(0.05,0.95));
badIdx <- which((dftest$x
2011 Oct 25
2
Logistic Regression - Variable Selection Methods With Prediction
Hello,
I am pretty new to R, I have always used SAS and SAS products. My
target variable is binary ('Y' and 'N') and i have about 14 predictor
variables. My goal is to compare different variable selection methods
like Forward, Backward, All possible subsests. I am using
misclassification rate to pick the winner method.
This is what i have as of now,
Reg <- glm (Graduation ~.,
2016 May 31
2
[PATCH 1/2] Modify autoconf tests for intrinsics to stop clang from optimizing them away.
---
configure.ac | 30 +++++++++++++++++++++---------
1 file changed, 21 insertions(+), 9 deletions(-)
diff --git a/configure.ac b/configure.ac
index a67aa37..c722556 100644
--- a/configure.ac
+++ b/configure.ac
@@ -472,6 +472,7 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[
[[
static float32x4_t A0, A1, SUMM;
SUMM = vmlaq_f32(SUMM, A0,
2007 Dec 12
1
Problem with filenames with commas in them
This is a continuation of my previous problem where cp could copy
files whereas rsync couldn't. It turns out that the problem is with
files which have commas in their names, rsync can write the initial
version of the file but it can't check/rewrite them.
Here is the error I get from rsync when trying to overwrite the files
(using --inplace) :-
home# rsync -r --inplace .in
2010 Dec 03
1
mgcv package plot superimposing smoothers
Dear R help list,
I'm fitting a 'variable coefficient model' in the MGCV package and I want to
plot the different smoothers I get for each factor level in one graph.
So, I do something like this to fit the gam:
Mtest <- gam(outcome ~ s(age, by=as.numeric(gender==0)) +
s(age,by=as.numeric(gender==1))+factor(Gender))
Then I can plot the smoother for gender=0:
plot(Mtest,select=1)
2016 Jun 06
2
Cannot share folders access denid PDC+LDAP.
Hi mathias, thanks for taking time to see this issue.
In my case is not a AD, is still a NT4 style.
I will try the option, thanks.
On Mon, Jun 6, 2016 at 5:31 AM, mathias dufresne <infractory at gmail.com>
wrote:
> Hi Alberto,
>
> No idea about your issue as I'm playing with Samba to build AD only, I can
> only tell you that I did tested on my Samba AD DC and I can use
2007 Jan 11
2
Voicemail IMAP
I know some of this doesn't belong on this list, but I am just
including it for problem history.
I am trying to setup IMAP Voicemail with our email server.
We are using a non-standards based groupware server called FirstClass.
The server has some built in support for IMAP.
My problem seems to be that the authuser flag is not supported.
When I use mtest in the imap toolkit to connect to
2006 May 11
5
Issue with hard links, please help!
Hello,
Sometimes when creating hard links to the rsync destination directory,
it seems like the new directory (created from the cp -al command) ends
up with all the data. This causes a problem in the sense that if the
rsync destination directory had 21GB, after the cp -al command, it ends
up having only 8mb, then the rsync source directory determines that it
now requires 21.98GB to update the
2010 Sep 27
4
Fitting problem
Hi,
I have a function that generates a set of data but I am having problems
determining the parameters using the nls fitting procedure.
####
"MH"<-function(field,diameter,mu=10e-7,sig=0.1,Ms=100,chi=0){
#variables mu, sig, chi, Ms
#input: field and diameter
#all in CGS
rho <- 5
kb <- 1.38e-16
t <- 300
length.d<-length(diameter)
length.H<-length(field)
2008 Mar 10
2
write.table with row.names=FALSE unnecessarily slow?
write.table with large data frames takes quite a long time
> system.time({
+ write.table(df, '/tmp/dftest.txt', row.names=FALSE)
+ }, gcFirst=TRUE)
user system elapsed
97.302 1.532 98.837
A reason is because dimnames is always called, causing 'anonymous' row
names to be created as character vectors. Avoiding this in
src/library/utils, along the lines of
Index:
2012 Jan 02
2
Conditionally adding a constant
I am trying to add a constant to the previous value of a variable based on
certain conditions. Maybe there is a simple way to do this that I am missing
completely. I have given an example below:
df <- data.frame(x = c(1,2,3,4,5), y = c(10,20,30,NA,NA))
> df
x y
1 1 10
2 2 20
3 3 30
4 4 NA
5 5 NA
I want to add 2 to the previous value of y, if x exceeds 3 (also will have
to handle NAs in
2018 Sep 11
0
shared folder in the samba domain, can't be access on trusting domain users
Hi,
Anybody got experienced that the shared folder (in SAMBAAD domain) can't be
accessible on the trusting domain (TESTHV).
Background: SAMBAAD has one-way trust with TESTHV. TESTHV users can
login in the SAMBAAD connected machines. Currently using Version 4.9.0rc5.
It's working fine if the SAMBAAD users access with it, but users in TESTHV
could not access with it even the permission
2012 Jun 28
1
add constraints to nls or use another function
Hello,
I'm trying to fit experimental data with a model and nls.
For some experiments, I have data with x from 0 to 1.2 and the fit is quite
good.
But it can happen that I have data only the [0,0.8] range (see the example
below) and, then, the fit is not correct.
I would like to add a constraint, for example : the second derivative must
be positive.
But I don't know how to add this to
2022 Feb 01
1
qemu-user-static: mis-emulates something to do with process/signal handling (m68k, s390x, …)
retitle 925358 qemu-user-static: mis-emulates something to do with process/signal handling (m68k, s390x, ?)
affects 925358 klibc-dev
thanks
This still happens. (And retitling because I almost filed a bug
against klibc again? oops?)
Look for ?mtest-external? (second occurrence) in:
https://buildd.debian.org/status/fetch.php?pkg=mksh&arch=m68k&ver=59c-16&stamp=1643675884&raw=0
2008 Jul 12
1
IMAP Storage Problem
Hi,
I'm having a problem with IMAP storage and asterisk. Here is the error
message I get (in this instance its checking messages):
[Jul 11 23:14:12] WARNING[9888]: app_voicemail.c:8738 mm_log: IMAP
Warning: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN
[Jul 11 23:14:12] ERROR[9888]: app_voicemail.c:8741 mm_log: IMAP
Error: IMAP protocol error: Authentication aborted
[Jul 11
2016 Jun 03
2
Cannot share folders access denid PDC+LDAP.
Hi, is time to get help.
I have a DOMAIN with samba3.6.23-9.el5_11 Centos 5.11 x64
Windows XP/Win7/Win8.1 domain no issues.(x32/x64)
I have even 2 Linux Centos 5.x in my domain x64
Now, I have add 1 Centos 6.x x64 updated.
Samba 3.6.23-35.el6_8
I had setup LDAP client on this server to get users/groups and add to my
domain with net rpc join, no issue.
I can see the server on my domain no
2016 Jun 06
0
Cannot share folders access denid PDC+LDAP.
Hi Alberto,
No idea about your issue as I'm playing with Samba to build AD only, I can
only tell you that I did tested on my Samba AD DC and I can use upper,
lower or mixed case in user names:
dc108:/opt/initial_setup# id mtest
uid=3000017(AD\mtest) gid=3000018(AD\not_system_users)
groupes=3000018(AD\not_system_users),3000017(AD\mtest)
dc108:/opt/initial_setup# id mTest
uid=3000017(AD\mtest)
2016 Jun 07
0
Cannot share folders access denid PDC+LDAP.
mathias, that flag help me, is now working, thanks!!!
On Mon, Jun 6, 2016 at 11:48 AM, Alberto Moreno <portsbsd at gmail.com> wrote:
> Hi mathias, thanks for taking time to see this issue.
>
> In my case is not a AD, is still a NT4 style.
>
> I will try the option, thanks.
>
> On Mon, Jun 6, 2016 at 5:31 AM, mathias dufresne <infractory at gmail.com>
> wrote:
2006 Jun 27
3
reading a matrix from a file
Hello everyone,
I'm writting a little script that will read a matrix from a file
i.e.
0,.11,.22,.4
.11,0,.5,.3
.22,.5,0,.7
anb so on
and will then calculate some standard stats for nets (i.e. centralization, degree, etc).
So far I have opened the file and read the contents, however I' m using readLines(filename)
to read the file and it returns it as
2015 Mar 13
1
[RFC PATCH v3] Intrinsics/RTCD related fixes. Mostly x86.
From: Jonathan Lennox <jonathan at vidyo.com>
* Makes ?enable-intrinsics work with clang and other non-GCC compilers
* Enables RTCD for the floating-point-mode SSE code in Celt.
* Disables use of RTCD in cases where the compiler targets an instruction set by default.
* Enables the SSE4.1 Silk optimizations that apply to the common parts of Silk when Opus is built in floating-point mode, not