Displaying 20 results from an estimated 257 matches for "mort".
Did you mean:
more
2005 May 07
3
converting NA/non-NA's to a binary variable
Dear R colleagues,
I am trying to create a new column in a data frame, which converts values
and NA's from another column into binary format. Essentially I need the
NA's to become 1 and the rest to be 0. The code I wrote is returning the
following error message:
Error in if (mort[i, 4] != NA) mort[i, 8] <- 0 else if (mort[i, 4] == :
missing value where TRUE/FALSE needed
The code is as follows:
for(i in 1:length(mort[,4]))
{
if(mort[i,4] != NA) mort[i,8] <- 0
else if(mort[i,4] == NA) mort[i,8] <- 1
}
I'd appreciate any advice or recommendation...
2011 May 02
3
ID parameter in model
...eter for an event
history/survival model, and why the EHA documentation for aftreg does
not specify one. All assistance and insights are appreciated.
Attempting to specifiy an id variable with the documentation example
generates an "overlapping intervals" error, so I sorted the original
mort dataframe and set subsequent entry times an id to the previous
exit time + 0.0001. This allowed me to see the affect of the id
parameter on the coefficients and significance tests, and prompted my
question. The code I used is shown below, with the results at the
bottom. Thanks in advance!
Mike...
2012 Apr 13
1
Coding columns for survival analysis
...ello Folks,
I have 5 columns for thousands of tree records that record whether that
tree was alive or dead. I want to recode the columns such that the cell
reads "found" when a live tree is first observed, "alive" for when a
tree is found alive and is not just found, and "mort" when it was
previously alive but is now dead.
Given the following:
> tree_live = data.frame(tree =
c("tree1","tree2","tree3","tree4","tree5"), live1 = c(0,0,0,1,1), live2
= c(0,0,1,1,0), live3 = c(0,1,1,0,0), live4 = c(1,1,0,0,0), liv...
2011 May 21
1
predict 'expected' with eha package
...would generate the same
transformed dependent variable output as predict with a survreg model
using type='response'. Since my 'real' data is left-truncated and
right-censored I cannot use survreg, and I wanted to investigate the
output from eha.
Thanks in advance!
Mike
> data(mort)
> aftreg(Surv(enter, exit, event) ~ ses, data = mort)
Call:
aftreg(formula = Surv(enter, exit, event) ~ ses, data = mort)
Covariate W.mean Coef Exp(Coef) se(Coef) Wald p
ses
lower 0.416 0 1 (reference)
upper 0.584 -0.348...
2010 Jul 27
1
xYplot error
Hi,
I'm trying to plot a graph with error bars using xYplot in the Hmisc
package. My data looks like this.
mort stand site type
0.042512776 0.017854525 Plot A ST
0.010459803 0.005573305 PF ST
0.005188321 0.006842107 MSF ST
0.004276068 0.011592129 YSF ST
0.044586495 0.035225266 Plot A LD
0.038810662 0.037355408 PF LD
0.027567430...
2003 Dec 08
0
[PATCH] Add some libgcc stuff to ia64's Makefile.inc
Hi,
Here is a fix for some missing libgcc magic in the ia64 build. A recent
problem with udev uncovered this. PPC needs a similar fix. Olaf will
send a patch, I imagine.
Both unified diff and bk diff (for Bryan) are attached.
mh
--
Martin Hicks Wild Open Source Inc.
mort@wildopensource.com 613-266-2296
-------------- next part --------------
# User: mort
# Host: green.i.bork.org
# Root: /home/mort/src/klibc.bk
# Patch vers: 1.3
# Patch type: REGULAR
== ChangeSet ==
hpa@zytor.com|ChangeSet|20020723064121|00000|f8a756c36aa22cad
mort@green.i.bork.org|ChangeSet|...
2018 Apr 18
3
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...not omit the memcpy and cast the original variable?
On 18/04/18 19:43, Krzysztof Parzyszek via llvm-dev wrote:
> This is the standard way of copying memory in the IR. Backends can
> expand the memcpy into loads/stores if they want.
>
> -Krzysztof
>
> On 4/18/2018 12:38 PM, edA-qa mort-ora-y via llvm-dev wrote:
>> Yes, I understand that as well (it's what I'm trying to recreate in my
>> language now).
>>
>> I'm really wondering why it does the copy, since from what I can tell it
>> could just as easily cast the original value and do the l...
2013 Nov 17
1
FactoMineR
Hola.
Como te dijo Carlos, el problema está en los nombres de las columnas y en
los nombres de las filas. Cuando hice la importación (con
dd<-read.csv('mortality.csv'), tuve problemas con las filas de nombre:
- Malignant tumour of the larynx trachea bronchus and lungs
- Malignant tumour of the lip pharynx and mouth
- Other endocrinological metabolic and nutritional conditions
que se me corrían a la derecha creándome una columna más. Corr...
2013 Nov 08
1
[LLVMdev] UNREACHABLE executed at MCJIT.cpp:322!
...n wrote:
> Something must be wrong with the Function Type. Try to debug into
> runFunction to see which if condition fails.
> Just a guess, if this is on 64 bit system the first argument type may be
> int64 but needs to be int32.
>
> Yaron
>
>
>
> 2013/11/8 edA-qa mort-ora-y <eda-qa at disemia.com <mailto:eda-qa at disemia.com>>
>
> That makes it more mysterious then since I am indeed only calling a main
> function. Perhaps I have to invoke it a different way. Here's my call I
> have now:
>
> auto main...
2013 Nov 08
2
[LLVMdev] UNREACHABLE executed at MCJIT.cpp:322!
...d by JIT but
> not MCJIT.
>
> However, with the supported calling sequences, you can probably replace
> the char** with a void* to a structure so that practically anything can
> be passed to your function inside the structure.
>
> Yaron
>
>
>
> 2013/11/8 edA-qa mort-ora-y <eda-qa at disemia.com <mailto:eda-qa at disemia.com>>
>
> I'm trying to get MCJIT working but I get the following errors:
> Full-featured argument passing not supported yet!
> UNREACHABLE executed at MCJIT.cpp:322!
> I'm sur...
2013 Nov 17
0
FactoMineR
Hola,
El problema está con el nombre de las columnas y las filas del fichero que
importas.
Mira este detalle tras hacer la importación:
> names(mort)
[1] "X" "X15.24..79." "X25.34..79."
[4] "X35.44..79." "X45.54..79." "X55.64..79."
[7] "X65.74..79." "X75.84..79." "X85.94..79."
[10] "X95.and.more..79.&qu...
2018 Apr 18
2
A struct {i8, i64} has size == 12, clang says size 16
...n't imagine the exact same triple with clang would
produce a different layout.
On 18/04/18 21:37, Reid Kleckner wrote:
> It sounds like your DataLayout may not match clang's for x86_64-linux. What
> does it say about the alignment of i64?
> On Wed, Apr 18, 2018 at 12:05 PM edA-qa mort-ora-y via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> I'm creating a struct of `{i8,i64}` and `DataLayout::getTypeAllocSize`
>> is returning `12`. `getStructLayout` also gives an `4` offset for the
>> second element.
>> The native ABI, and clang, for...
2018 Apr 18
4
A struct {i8,i64} has size == 12, clang says size 16
...y
#include <stddef.h>
typedef struct vpt_data {
_Bool c;
long int b;
} vpt_data;
int main() {
vpt_data v;
vpt_test(v);
auto a = sizeof(v);
auto off = offsetof(vpt_data,b);
}
16 is stored to `a` and 8 to `off`.
--
edA-qa mort-ora-y
http://mortoray.com/
Creator of the Leaf language
http://leaflang.org/
Streaming algorithms, AI, and design on Twitch
https://www.twitch.tv/mortoray
Twitter
edaqa
2013 Nov 08
0
[LLVMdev] UNREACHABLE executed at MCJIT.cpp:322!
Something must be wrong with the Function Type. Try to debug into
runFunction to see which if condition fails.
Just a guess, if this is on 64 bit system the first argument type may be
int64 but needs to be int32.
Yaron
2013/11/8 edA-qa mort-ora-y <eda-qa at disemia.com>
> That makes it more mysterious then since I am indeed only calling a main
> function. Perhaps I have to invoke it a different way. Here's my call I
> have now:
>
> auto main = linker->getModule()->getFunction( "main"...
2012 Nov 11
4
[LLVMdev] IR sizeof?
...entptr both implicitly
use it, but I don't see any way to get access to the size directly.
I know my final compiler will have to get the size itself, but I'm just
doing some simple tests directly in assembly now and am hoping there is
an easy way to get the size of a structure.
--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-sign...
2018 Apr 19
0
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...n pipeline of LLVM will clean things up. So in many cases it's
just easier (& not a significant impediment to performance) to have some of
these sort of redundancies/oddities in output, and just let the LLVM
optimization pipeline clean them up later.
On Wed, Apr 18, 2018 at 10:51 AM edA-qa mort-ora-y via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Yes, but why is it even copying the memory? It already has a pointer
> which it can cast and load from -- and does so in other scenarios.
>
> I'm wondering whether this copying is somehow required and I'm missing...
2011 Oct 04
1
Rug plot curve reversal
Dear R-help
Can anyone tell me why my curve appears the wrong way round on a rug plot?
I am using the same code as on pg 596 of the Crawley R-book.
mod<-glm(mort~logBd,binomial)
par(mfrow=c(2,2))
xv<-seq(0,8,0.01)
yv<-predict(mod,list(logBd=xv),type="response")
plot(logBd,mort)
lines(xv,yv)
I've tried swapping xv and yv around but no luck.
Thanks,
Pete
[[alternative HTML version deleted]]
2017 Aug 07
0
Latin hypercube sampling from a non-uniform distribution
> How can I draw a Hypercube sample for the variable mortality_probability so
> that this variable exhibits the same pattern as the observed distribution?
One simple way is to use the uniform random output of randomLHS as input to the quantile function for your desired distribution(s).
For example:
q <- randomLHS(1000, 3)
colnames(q) <- c(&qu...
2018 Apr 18
2
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...ot why it's doing it this way.
On 18/04/18 19:33, Krzysztof Parzyszek via llvm-dev wrote:
> It is a matter of the calling convention. It would specify what
> structs are passed in registers, and which are passed through stack.
>
> -Krzysztof
>
> On 4/18/2018 12:28 PM, edA-qa mort-ora-y via llvm-dev wrote:
>> I understand it's passing by value, that's what I'm testing here. The
>> question is why does it copy the data rather than just casting and
>> loading values from the original variable (%v) ? It seems like the
>> copying is unnecessa...
2018 Apr 18
0
A struct {i8, i64} has size == 12, clang says size 16
It sounds like your DataLayout may not match clang's for x86_64-linux. What
does it say about the alignment of i64?
On Wed, Apr 18, 2018 at 12:05 PM edA-qa mort-ora-y via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I'm creating a struct of `{i8,i64}` and `DataLayout::getTypeAllocSize`
> is returning `12`. `getStructLayout` also gives an `4` offset for the
> second element.
> The native ABI, and clang, for the same type are produ...