Re: [R] Package is not available for this version of R.

2021-11-26 Thread Jim Lemon
Hi Amanze,
The package is apparently "apsurvival", hosted on GitHub:

https://rdrr.io/github/carolinewei/apsurvival/

There seem to be instructions on how to install this, but the
maintainer (Caroline Wei?) doesn't seem to have an email address
listed. Perhaps the easiest thing for you to do is ask your teacher
how to install this package and remember to load it:

library(apsurvival)

after installing when you need the function.

Jim

On Sat, Nov 27, 2021 at 4:02 AM Amanze Ozioma  wrote:
>
> Hi, Good afternoon.
>  Please I am trying to do my project from school. I keep getting the error
> message that the package is not available. Please advise. below is the
> error message. May I know what package the 'prob.def1' is under?
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Fwd: Package is not available for this version of R.

2021-11-26 Thread Jeff Newmiller
Anyone could write a function named prob.def1, and it is not part of base R so 
it is off-topic here and there is no way for people on this list to 
definitively know the answer. As far as Google can tell me it is not from CRAN 
either. OP should go talk to whoever wrote this code.

On November 26, 2021 10:28:02 AM PST, Bert Gunter  
wrote:
>Bert Gunter
>
>"The trouble with having an open mind is that people keep coming along
>and sticking things into it."
>-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>
>-- Forwarded message -
>From: Bert Gunter 
>Date: Fri, Nov 26, 2021 at 10:27 AM
>Subject: Re: [R] Package is not available for this version of R.
>To: Amanze Ozioma 
>
>
>You got messages telling you that some of the package's dependencies
>could not be installed. So the package cannot possibly work. Try
>uninstalling and reinstalling. After that, I have no idea. I have
>cc'ed this to the list so that others may help, which you should
>always do unless there is some specific reason not to.
>
>Bert Gunter
>
>"The trouble with having an open mind is that people keep coming along
>and sticking things into it."
>-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>On Fri, Nov 26, 2021 at 10:13 AM Amanze Ozioma  
>wrote:
>>
>> Yes, I installed and made it available. It still did not work. See it below.
>>
>>
>>
>>
>>
>> Sent from Mail for Windows
>>
>>
>>
>> From: Bert Gunter
>> Sent: Friday, November 26, 2021 6:29 PM
>> To: Amanze Ozioma
>> Subject: Re: [R] Package is not available for this version of R.
>>
>>
>>
>> Did you make the package(prob) available via ?library before trying to
>>
>> use the function?
>>
>>
>>
>> Bert Gunter
>>
>>
>>
>> "The trouble with having an open mind is that people keep coming along
>>
>> and sticking things into it."
>>
>> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>>
>>
>>
>> On Fri, Nov 26, 2021 at 9:23 AM Amanze Ozioma  
>> wrote:
>>
>> >
>>
>> > Good day. Thank you for the reply. I have previously installed 'prob'. 
>> > After installing, when I try to use the prob.def1 function, it says, 
>> > 'could not find function 'prob.def1'.
>>
>> >  Thinking I made a mistake with the package name, I tried installing 
>> > 'probability' package instead of 'prob'. Error message is 'this package 
>> > does not exist for this version of R'.
>>
>> >  Please, may I know what particular package 'prob.def1' falls under? This 
>> > is an example of what I am trying to carry out.
>>
>> > r0=log(0.7)
>>
>> > E0=Eventnum(r=r0, alpha=0.05, beta=0.2)
>>
>> > set.seed(123)
>>
>> > AP1 <- prob.def1(r0=r0, s=3, E0=E0, u=c(1,1,1), f=c(1/3,1/3,1/3),
>>
>> > pai=1/3, n=1000, lamda=1, lamda_cen=1, L=2)
>>
>> >
>>
>> > On Fri, Nov 26, 2021, 6:16 PM Bert Gunter  wrote:
>>
>> >>
>>
>> >> You seem to be confused. The package appears to be "prob" containing a
>>
>> >> function prob.def1(). If I am correct about this, you need to review
>>
>> >> these materials in your course to proceed.
>>
>> >>
>>
>> >>
>>
>> >> Bert Gunter
>>
>> >>
>>
>> >> "The trouble with having an open mind is that people keep coming along
>>
>> >> and sticking things into it."
>>
>> >> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>>
>> >>
>>
>> >>
>>
>> >> On Fri, Nov 26, 2021 at 9:02 AM Amanze Ozioma  
>> >> wrote:
>>
>> >> >
>>
>> >> > Hi, Good afternoon.
>>
>> >> >  Please I am trying to do my project from school. I keep getting the 
>> >> > error
>>
>> >> > message that the package is not available. Please advise. below is the
>>
>> >> > error message. May I know what package the 'prob.def1' is under?
>>
>> >> > __
>>
>> >> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>
>> >> > https://stat.ethz.ch/mailman/listinfo/r-help
>>
>> >> > PLEASE do read the posting guide 
>> >> > http://www.R-project.org/posting-guide.html
>>
>> >> > and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Fwd: Package is not available for this version of R.

2021-11-26 Thread Bert Gunter
Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


-- Forwarded message -
From: Bert Gunter 
Date: Fri, Nov 26, 2021 at 10:27 AM
Subject: Re: [R] Package is not available for this version of R.
To: Amanze Ozioma 


You got messages telling you that some of the package's dependencies
could not be installed. So the package cannot possibly work. Try
uninstalling and reinstalling. After that, I have no idea. I have
cc'ed this to the list so that others may help, which you should
always do unless there is some specific reason not to.

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Fri, Nov 26, 2021 at 10:13 AM Amanze Ozioma  wrote:
>
> Yes, I installed and made it available. It still did not work. See it below.
>
>
>
>
>
> Sent from Mail for Windows
>
>
>
> From: Bert Gunter
> Sent: Friday, November 26, 2021 6:29 PM
> To: Amanze Ozioma
> Subject: Re: [R] Package is not available for this version of R.
>
>
>
> Did you make the package(prob) available via ?library before trying to
>
> use the function?
>
>
>
> Bert Gunter
>
>
>
> "The trouble with having an open mind is that people keep coming along
>
> and sticking things into it."
>
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>
>
> On Fri, Nov 26, 2021 at 9:23 AM Amanze Ozioma  
> wrote:
>
> >
>
> > Good day. Thank you for the reply. I have previously installed 'prob'. 
> > After installing, when I try to use the prob.def1 function, it says, 'could 
> > not find function 'prob.def1'.
>
> >  Thinking I made a mistake with the package name, I tried installing 
> > 'probability' package instead of 'prob'. Error message is 'this package 
> > does not exist for this version of R'.
>
> >  Please, may I know what particular package 'prob.def1' falls under? This 
> > is an example of what I am trying to carry out.
>
> > r0=log(0.7)
>
> > E0=Eventnum(r=r0, alpha=0.05, beta=0.2)
>
> > set.seed(123)
>
> > AP1 <- prob.def1(r0=r0, s=3, E0=E0, u=c(1,1,1), f=c(1/3,1/3,1/3),
>
> > pai=1/3, n=1000, lamda=1, lamda_cen=1, L=2)
>
> >
>
> > On Fri, Nov 26, 2021, 6:16 PM Bert Gunter  wrote:
>
> >>
>
> >> You seem to be confused. The package appears to be "prob" containing a
>
> >> function prob.def1(). If I am correct about this, you need to review
>
> >> these materials in your course to proceed.
>
> >>
>
> >>
>
> >> Bert Gunter
>
> >>
>
> >> "The trouble with having an open mind is that people keep coming along
>
> >> and sticking things into it."
>
> >> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
> >>
>
> >>
>
> >> On Fri, Nov 26, 2021 at 9:02 AM Amanze Ozioma  
> >> wrote:
>
> >> >
>
> >> > Hi, Good afternoon.
>
> >> >  Please I am trying to do my project from school. I keep getting the 
> >> > error
>
> >> > message that the package is not available. Please advise. below is the
>
> >> > error message. May I know what package the 'prob.def1' is under?
>
> >> > __
>
> >> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>
> >> > https://stat.ethz.ch/mailman/listinfo/r-help
>
> >> > PLEASE do read the posting guide 
> >> > http://www.R-project.org/posting-guide.html
>
> >> > and provide commented, minimal, self-contained, reproducible code.
>
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[ESS] Removing extra > when evaluating region

2021-11-26 Thread Jeremie Juste via ESS-help
Hello,

I would like to remove the extra > and + generated when evaluating
a region, with ess-eval-visibly set to nil.  I saw issue #576 on github
and tried to set inferior-ess-replace-long+ to `strip` but I still get
misalignement as shown in the example below.

I favour the right alignment when prinint over any information that the
repetition of the primary and secondary prompt provide.

  (setq ess-eval-visibly nil)


I'm using ess-version: 18.10.3snapshot [elpa: 20211122.1708] (loaded
from /home/djj/.emacs.d/elpa/ess-20211122.1708/).

Any help would be greatly appreciated

Best regards,
Jeremie



# file test.R
library(data.table)
acbi <- function(){

}

acbi <- function(){

}


aa <- data.frame(a=1:10,b=letters[1:10])
aa



> + + > > > > + + > > > > > > a b
1   1 a
2   2 b
3   3 c
4   4 d
5   5 e
6   6 f
7   7 g
8   8 h
9   9 i
10 10 j

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [R] Package is not available for this version of R.

2021-11-26 Thread Bert Gunter
You seem to be confused. The package appears to be "prob" containing a
function prob.def1(). If I am correct about this, you need to review
these materials in your course to proceed.


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Fri, Nov 26, 2021 at 9:02 AM Amanze Ozioma  wrote:
>
> Hi, Good afternoon.
>  Please I am trying to do my project from school. I keep getting the error
> message that the package is not available. Please advise. below is the
> error message. May I know what package the 'prob.def1' is under?
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Confirmatory Factor Analysis

2021-11-26 Thread Pat Malone via R-help
In this particular case, lavaan  has a dedicated forum with lots of helpful
folks at https://groups.google.com/g/lavaan

On Fri, Nov 19, 2021 at 8:28 PM Bert Gunter  wrote:

> Please read the posting guide linked below, which says:
>
> "Questions about statistics: The R mailing lists are primarily
> intended for questions and discussion about the R software. However,
> questions about statistical methodology are sometimes posted. If the
> question is well-asked and of interest to someone on the list, it may
> elicit an informative up-to-date answer."
>
> Also note:
>
> "For questions about functions in standard packages distributed with R
> (see the FAQ Add-on packages in R), ask questions on R-help.
> If the question relates to a contributed package , e.g., one
> downloaded from CRAN, try contacting the package maintainer first. You
> can also use find("functionname") and
> packageDescription("packagename") to find this information. Only send
> such questions to R-help or R-devel if you get no reply or need
> further assistance. This applies to both requests for help and to bug
> reports."
>
> So do not be surprised if you do not get a response here. Cross Validated,
> i.e.
> stats.stackexchange.com
> *might* be a better alternative.
>
> Cheers,
> Bert Gunter
>
>
> On Fri, Nov 19, 2021 at 4:40 PM AbouEl-Makarim Aboueissa
>  wrote:
> >
> >  Dear All:
> >
> >
> >
> > I am conducting a Confirmatory Factor Analysis (CFA) for the attached
> data.
> > Here is what I did. please see below
> >
> > I do need your help with the structure of the model. I believe that what
> I
> > used is the correlated CFA model. If I am wrong, please fix me. I need
> your
> > help with the structure of the CFA uncorrelated model.
> >
> >
> >
> > Thank you very much for your help in advance
> >
> >
> >
> > Abou
> >
> >
> >
> >
> >
> > datacfa<-read.table("G:/data_for_R.txt", header=TRUE)
> >
> > head(datacfa)
> >
> >
> >
> > install.packages("lavaan")
> >
> > library(lavaan)
> >
> >
> >
> > install.packages("semPlot")
> >
> > library(semPlot)
> >
> >
> >
> > install.packages("parameters")
> >
> > library(parameters)
> >
> >
> >
> >  model structure
> >
> >
> >
> > CAF.Factors <- 'Factor1 =~ X11 + X13 + X14 + X15 + X17
> >
> > Factor2 =~ X6 + X7 + X12 + X16 + X19
> >
> >  Factor3 =~ X9 + X18 + X21
> >
> >  Factor4 =~ X19 + X20 + X22'
> >
> >
> >
> > fourfactors.model.a <- cfa(CAF.Factors, data=datacfa,std.lv=TRUE)
> >
> >
> >
> > summary(fourfactors.model.a, fit.measures=TRUE,standardized=TRUE)
> >
> >
> >
> > semPaths(fourfactors.model.a, ncharNodes = 0, style = "lisrel", rotation
> =
> > 2)
> >
> >
> >
> > #  model_parameters(fourfactors.model.a)
> >
> >
> >
> > model_parameters(fourfactors.model.a, standardize = TRUE)
> >
> >
> > __
> >
> >
> > *AbouEl-Makarim Aboueissa, PhD*
> >
> > *Professor, Statistics and Data Science*
> > *Graduate Coordinator*
> >
> > *Department of Mathematics and Statistics*
> > *University of Southern Maine*
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 

*Patrick S. Malone, PhD*
Sr Research Statistician, FAR HARBĪ¦R
+1 803.553.4181  |  pat@   |  farharbor.com
*This message may contain confidential information; if you are not the
intended recipient please notify the sender and delete the message.*

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.