Hello everyone!
Since I have no clue about R, I would like to ask you this:
There is an R code (see attaced) which will contains Distributed lag non-linear models that I must perform on a dataset I have. Is there a way to make it run on MatLab?
I am using R2019a.
Thanks in advance!

답변 (1개)

Rik
Rik 2020년 12월 15일

0 개 추천

The consensus seems to be that you should invoke R from the command line.
You can use the RunRcode FEX submission.

댓글 수: 4

Daphne PARLIARI
Daphne PARLIARI 2020년 12월 15일
Hi Rik.
I already tried that and in the generated code it writes:
Error in library("dlnm") : there is no package called 'dlnm'
Execution halted
Rik
Rik 2020년 12월 15일
That is a problem from within R, so you would need to install that package inside R.
Daphne PARLIARI
Daphne PARLIARI 2020년 12월 15일
OK I installed the licrary but the generated file writes
Error in mkbasis(1:5, type = "bs", df = 4, degree = 2, cenvalue = 3) :
could not find function "mkbasis"
Execution halted
Rik
Rik 2020년 12월 15일
These are all R-related errors, which you should resolve on an R forum.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2020년 12월 15일

댓글:

Rik
2020년 12월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by