Displaying 20 results from an estimated 300 matches similar to: "Re : Re : float and double precision with C code"
2008 Jul 17
0
Re : float and double precision with C code
thank you for your quick answer,
I'm far of the digits capacity and my values are not the result of a computation. I'm developping a R package to acces a specific data source. And I need precision a few better. How can I do ?
When I try this In R console, this is correct and what I need :
> my_value <- 29.958334
> my_value == 29.958334
[1] TRUE
But I need to do the first
2011 Feb 23
0
Problem with Mclust
Dear All,
I fear I am badly misunderstanding something fundamental about the
mclust package.
Please considered the dataset pasted at the end of the email (you can
also have a look at
http://dl.dropbox.com/u/5685598/dataedges.csv
).
Now, I would like to use the info on columns 1,2 and 4 to predict the
value in column 3.
However, when I run the script below (obg_mining_script.R), I get
2006 May 09
1
Reusing a model to form and link_to.
Hy guys,
Inside my app I have a form which contains user information.
Sometimes a have a form with a text_field as above:
<%= form_remote_tag(:html => { :action => url_for(:controller =>
"my_controller", :action => "my_action") }) %>
<%= text_field(''my_object'', ''my_parameter'', :maxlength =>
2011 Mar 14
3
increase a value by each group?
Hi everybody.
I'm looking for the way to increase the depth value in 0.01 for each index group.
Easier to explain with this example:
>my_data=read.table("clipboard", header=TRUE)
Depth s_name index
3852 Site_1 144
3852 Site_1 144
3852 Site_1 144
3852 site_A 145
3852 site_A 145
3852 site_A 145
3852 site_A 145
3852 site_B 147
3852 site_B 147
3852 site_B 147
3852 site_B 147
54962
2011 Apr 10
2
Multinomial Logit Model with lots of Dummy Variables
Hi All,
I am attempting to build a Multinomial Logit model with dummy variables of
the following form:
Dependent Variable : 0-8 Discrete Choices
Dummy Variable 1: 965 dummy varsghpow at student.monash.edu.augh@gp1.com
Dummy Variable 2: 805 dummy vars
The data set I am using has the dummy columns pre-created, so it's a table
of 72,381 rows and 1770 columns.
The first 965 columns represent
2012 Mar 23
1
R conditional matrix operations - advanced condition
Hello List!
I stumbled across an efficiency problem - calculation that would be
probably done very fast as a matrix operation I must perform as a
for-loop.
My intention was to do a conditional operation in matrix depending on
the information in first column (summing as many data points from
vector my_data as the number specified in the first column of the
matrix) but the result is that the
2005 Mar 14
2
Install the RMySQL
Hi, I have some problem to install RMySQL package.
Could you help me?
I set up the path.
[root at ep2 library]# export PKG_CPPFLAGS="-I/var/lib/mysql"
[root at ep2 library]# export PKG_LIBS="-L/var/lib/mysql -
lmysqlclient"
[root at ep2 library]# R CMD INSTALL /home/younko/RMySQL_0.5-
5.tar.gz
I got this bunch of error message.
Please help me.
* Installing *source*
2005 Oct 22
0
Getting univariate information from a multivariate data set
A quick question that I've had only partial success in answering. I
have a multivariate dataset, and would like to extract some simple
univariate information from it grouped by treatments, etc. I am
encountering two problems however
Note: I am importing my data with
my_data <- read.csv("/path/data.csv")
1) Scoping of unstack
If I attempt
sorted_data <- unstack(response,
2007 Jan 16
0
[LLVMdev] Indirect branch instruction
Chris Lattner wrote:
> I don't understand. You're making a claim that the C compiler isn't
> producing optimal code for some case. Can you give an example of a C
> function that llvm compiles to something suboptimal? LLVM certainly does
> generate stuff like "jmp %eax", but presumably not in the way you want.
> Without an example to see what you mean, we
2012 Aug 17
1
[LLVMdev] Generate data16 assembly instruction for TLS with PIC
Hi all,
System: x86-64 ubuntu 11.04
LLVM: 3.0
gcc: 4.5.2
I declare a thread_local global variable and access it in a function in
llvm IR.
for example,
@my_value = linkonce thread_local global %dummy* null
define void @test1() {
entry:
%load_my_value = load %dummy** @my_value
....
}
After that, I use the following command:
bash$ llc -relocation-model=pic test.ll
And I have test.s
2011 Apr 29
0
Local channel scenario flushes CDR before dialplan end
Hi,
There's a quite complex dialplan scenario and I found out that CDR of
main channel is flushed right after hangup on Local channel. I will try
to simplify my scenario:
[incoming]
exten => 555,1,Noop(do something before using local channel, fill some
variables, play IVR menus and so on)
same => n,Dial(Local/555 at office/n,,g)
same => n,Noop(Notice the option "/n" and
2013 Jan 17
3
how to use "..."
Dear users,
I'm trying to learn how to use the "...".
I have written a function (simplified here) that uses doBy::summaryBy():
# 'dat' is a data.frame from which the aggregation is computed
# 'vec_cat' is a integer vector defining which columns of the data.frame
should be use on the right side of the formula
# 'stat_fun' is the function that will be run to
2017 Nov 06
0
[Bug 11414] rsync: chgrp "/.filename.5afK5X" (in dirdir) failed: Operation not permitted (1)
https://bugzilla.samba.org/show_bug.cgi?id=11414
--- Comment #2 from Michal Ruprich <mruprich at redhat.com> ---
I stumbled upon this bug and I have a question. I get the chgrp error even when
running the daemon as root.
#ps -aux | grep rsync
root 18486 0.0 0.0 114696 568 ? Ss 09:41 0:00 rsync --daemon
I have configured a module in /etc/rsyncd.conf like this:
[my_data]
2009 Dec 16
0
lasso regression coefficients
Dear list,
I have been trying to apply a simple lasso regression on a 10-element
vector, just to see how this method works so as to later implement it on
larger datasets. I thus create an input vector x:
* x=rnorm(10)*
I add some noise
* noise=runif(n=10, min=-0.1, max=0.1)*
and I create a simple linear model which calculates my output vector y
* y=2*x+1+noise*
I then do
2011 Sep 30
0
two simple questions about MCMCpoissonChange
Dear R users,
two quick questions about MCMCpoissonChange of the MCMCpack:
1. my data is stored into a vector (e.g. my_data), and as input for MCMCpoissonChange I need either a formula or a data frame.
If I simply transform my vector to a data frame with data.frame(my_data), it does not work.
If I use the formula my_data~1, then I get the following error: 'You have to prior for lambda (c0 and
2012 Dec 17
0
[LLVMdev] LLVMdev Digest, Vol 98, Issue 33
Hey Cameron,
Sorry to reply this mail so late.
Recently, I tried to understand what's the impact of the warning message
(Warning: stand-alone `data16' prefix)
And in binutils (gas/config/tc-i386.c), I found:
if (!quiet_warnings)
{
.....
if (t->opcode_modifier.isprefix
&& t->opcode_modifier.ignoresize)
{
/* Warn them that a data or address
2011 Dec 27
1
How to extract an interval of "hour:minute" type
Hi,
I 'd like to know how to extract an interval of "hour:minute" type from a
column of POSIXlt POSIXct type.
For instance:
my_data.csv:
4352;2011-09-02 21:30:00;3242;
4352;2011-09-02 21:31:00;3315;
4352;2011-09-02 21:32:00;4241;
4352;2011-09-02 21:33:00;5394;
...
4352;2011-09-02 01:02:00;67;
4352;2011-09-02 01:03:00;67;
4352;2011-09-02 01:04:00;67;
....
I loaded
2012 Aug 04
1
Getting unknown error trying to plot spatial data
Hi there! I'm following an awesome guide to working with spatial data
(http://www.frankdavenport.com/blog/2012/6/19/notes-from-a-recent-spatial-r-class-i-gave.html)
and am running into an error that I can't figure out how to fix.
Disclaimer: I am very much an R n00b
Here is the r script I am running:
https://dl.dropbox.com/u/28231177/This%20Should%20Work.R
data:
2006 Dec 28
2
lattice xyplot: plot multiple lines with different colors
Hi everyone,
I am using the lattice package to plot some simulation results, by using
the function xyplot(). However, I cannot find a way to plot multiple
lines within the same xyplot and to have each of the lines be drawn in a
different color.
This is what I am currently doing:
xyplot(a + b + c ~ x, my_data, panel = panel.lines)
but, of course, all lines are drawn in the same color.
What
2024 Feb 24
1
Interactions in regression
Hi All,
I stumbled upon some topics regarding interactions in anova and regression
and packages for tabulating and visualizations the results of them.
Here we are:
https://stackoverflow.com/questions/77933272/how-to-add-a-reference-level-for-interaction-in-gtsummary-and-sjplot/77935742#77935742
,