Displaying 6 results from an estimated 6 matches for "yourclass".
Did you mean:
hourglass
2018 May 01
4
issue with model.frame()
A user sent me an example where coxph fails, and the root of the failure is a case where
names(mf) is not equal to the term.labels attribute of the formula -- the latter has an
extraneous newline. Here is an example that does not use the survival library.
# first create a data set with many long names
n <- 30? # number of rows for the dummy data set
vname <- vector("character",
2006 Jan 12
6
link_to_image - Remove Border
Hi All,
I am new to both Ruby and Rails, so please be patient with me. I am
currently working on a view for a controller and I have used the
following excerpt:
<td><%= link_to_image "b_edit", :action => ''edit'', :id => part_prefix
%></td>
The image is being displayed and the link is working. However, the
formatting of image rendered
2018 May 01
0
issue with model.frame()
....frame(formula(myform), data=tdata)
>
> match(attr(terms(mf), "term.labels"), names(mf)) # gives NA
>
> ----
>
> In the user's case the function is ridge(x1, x2, ....) rather than cbind, but the effect is the same.
> Any ideas for a work around?
Maybe add a `yourclass' class to mf and dispatch to a model.frame.yourclass method where the width cutoff arg here (around lines 57-58 of model.frame.default) is made larger:
varnames <- sapply(vars, function(x) paste(deparse(x, width.cutoff = 500),
collapse = " "))[-1L]
??
>
> Aside:...
2012 Apr 03
1
Create Model Object (setClass?setMethod?)
Hi all,
I have a self written likelihood as a model and functions to optimize and
get fitted values, confidence intervals ect.
I wonder if there is a way to define a 'class', or a 'model' (or a certain
object)? so that I can use 'summary' to produce a summary like it does for a
lm object.
Also, it should be able to use 'predict' and 'plot' and other
2018 May 01
1
[EXTERNAL] Re: issue with model.frame()
...>>
>> match(attr(terms(mf), "term.labels"), names(mf)) # gives NA
>>
>> ----
>>
>> In the user's case the function is ridge(x1, x2, ....) rather than cbind, but the effect is the same.
>> Any ideas for a work around?
>
> Maybe add a `yourclass' class to mf and dispatch to a model.frame.yourclass method where the width cutoff arg here (around lines 57-58 of model.frame.default) is made larger:
>
> varnames <- sapply(vars, function(x) paste(deparse(x, width.cutoff = 500),
> collapse = " "))[-1L]
>
&g...
2018 May 01
2
issue with model.frame()
...tch(attr(terms(mf), "term.labels"), names(mf)) # gives NA
>>
>> ----
>>
>> In the user's case the function is ridge(x1, x2, ....) rather than cbind, but the effect is the same.
>> Any ideas for a work around?
> Maybe add a `yourclass' class to mf and dispatch to a model.frame.yourclass method where the width cutoff arg here (around lines 57-58 of model.frame.default) is made larger:
> varnames <- sapply(vars, function(x) paste(deparse(x, width.cutoff = 500),
> collapse = " "))[-1L]
What version...